Eclipse中的表单发布操作错误 [英] Form Post Action Error in Eclipse
问题描述
我有2个jsps ..第一个是驻留在(Webcontent的主文件夹中)的寄存器jsp即(Register.jsp),而另一个jsp即(位于WebContent的辅助文件夹中的Register_worker.jsp)充当servlet或辅助jsp.当我单击提交"按钮时,显示错误
I have 2 jsps .. The first one is the register jsp i.e(Register.jsp) which resides in (main folder of Webcontent) and the other jsp i.e(Register_worker.jsp which is in worker folder of WebContent) is supposed to act as the servlet or worker jsp. When i click the submit button it shows an error
HTTP状态404-/learn-ui/jsp/main/Register_worker.jsp
HTTP Status 404 - /learn-ui/jsp/main/Register_worker.jsp
- 类型:状态报告
- 消息:/learn-ui/jsp/main/Register_worker.jsp
- 说明:所请求的资源不可用.
该表单操作发布在下面.
The form action is posted below.
<form id="form_register"
name="form_register"
method="post"
action="Register_worker.jsp">
推荐答案
Register.jsp
的路径与Register_worker.jsp
的路径不同.因此,您需要更改路径.这样可以正常工作:
The path of Register.jsp
isn't the same as Register_worker.jsp
. So you'll need to change the path. This will work fine:
<form id="form_register" name="form_register" method="post" action="../worker/Register_worker.jsp">
这篇关于Eclipse中的表单发布操作错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!