Sandra Patricia Hunter wrote:
I built my jsp files and they ran just fine.
Then I created a servlet that runs just fine as well.
But when I try to now run my jsp Tomcat continues to refer to files that are
only relevant for the servlet.
Even plain html pages don't run correctly. Servlets still run fine.
Please help!

[...]


Web.xml snippet:
<servlet>
<servlet-name>IDLogin</servlet-name>
<description>
this is the login page for the servlet
</description>
<servlet-class>idcard.IDLogin</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>IDLogin</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>

Looks like you've mapped all requests within the idcard webapp to that servlet. This means that the IDLogin servlet will be called by *any* request made within your webapp's reach.


Change the <url-pattern> element to something like /login or something.



Erik


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to