This content has been marked as final.
Show 2 replies
-
1. Re: Using HTML file to call Servlet
jonlee Sep 28, 2003 6:18 PM (in response to jleaf)Your URL pattern match in web.xml is incorrect. It should be something like /servlet/ResponseDemo, judging from your index2.html action. At the moment, you are matching when the context/ appears in your URL and redirects to the servlet rather than allowing the static content to be sent.
-
2. Re: Using HTML file to call Servlet
jleaf Sep 28, 2003 10:08 PM (in response to jleaf)Hi,
Thanks. I changed it to
<url-pattern>/servlet/ResponseDemoServlet</url-pattern>
and it works.