主题:[讨论]新手servlet问题
我在myeclipse平台上进行简单的web开发,就是一个编辑框输入内容,然后提交,进行提交时出现了错误:
提示为:HTTP Status 404 - /SecondFormServlet/FirstFormServlet
type Status report
message /SecondFormServlet/FirstFormServlet
description The requested resource (/SecondFormServlet/[color=FF0000]FirstFormServlet[/color]) is not available.
我的 web.xml是:
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>FormServlet</servlet-name>
<servlet-class>servlet.FormServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FormServlet</servlet-name>
<url-pattern>/FormServlet</url-pattern>
</servlet-mapping>
在浏览器中输入http://localhost:8081/SecondFormServlet/FormServlet 显示是正确的,怎么才能将(/SecondFormServlet/[color=0000FF][color=FF0000]FirstFormServlet[/color][/color])变成(/SecondFormServlet/[color=FF00FF][color=C0C0C0][color=FF0000][color=C0C0C0][color=FF00FF]FormServlet[/color][/color][/color][/color][/color])
请各位大侠指点 在这里先谢过大家,谢谢
提示为:HTTP Status 404 - /SecondFormServlet/FirstFormServlet
type Status report
message /SecondFormServlet/FirstFormServlet
description The requested resource (/SecondFormServlet/[color=FF0000]FirstFormServlet[/color]) is not available.
我的 web.xml是:
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>FormServlet</servlet-name>
<servlet-class>servlet.FormServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FormServlet</servlet-name>
<url-pattern>/FormServlet</url-pattern>
</servlet-mapping>
在浏览器中输入http://localhost:8081/SecondFormServlet/FormServlet 显示是正确的,怎么才能将(/SecondFormServlet/[color=0000FF][color=FF0000]FirstFormServlet[/color][/color])变成(/SecondFormServlet/[color=FF00FF][color=C0C0C0][color=FF0000][color=C0C0C0][color=FF00FF]FormServlet[/color][/color][/color][/color][/color])
请各位大侠指点 在这里先谢过大家,谢谢