Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何从html调用servlet,servlet如何调用jsp?_Java_Jsp_Servlets - Fatal编程技术网

Java 如何从html调用servlet,servlet如何调用jsp?

Java 如何从html调用servlet,servlet如何调用jsp?,java,jsp,servlets,Java,Jsp,Servlets,我想在index.html中创建一个链接,该链接调用servlet并调用要显示的jsp,但我遇到了错误404,并且已经尝试了许多“解决方案”(我在Internet上找到了这些问题)。如何从servlet发送重定向到jsp URL作为响应?发布代码。

我想在index.html中创建一个链接,该链接调用servlet并调用要显示的jsp,但我遇到了错误404,并且已经尝试了许多“解决方案”(我在Internet上找到了这些问题)。

如何从servlet发送重定向到jsp URL作为响应?

发布代码。