tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "German Augusto Niebles Alvarez" <GERMN...@susalud.com.co>
Subject Re: where to put servlet classes
Date Thu, 24 Oct 2002 18:35:27 GMT
Try with:

<form method="POST" action="/app/servlet/authenticateUser">

 in your login jsp page.

be careful with 'servlet' not servlets', because servlet is virtual
directory.


Regards.






>>> ekennedy@titan.com 10/24 9:55 a.m. >>>
I am a new Tomcat user and I am having trouble accessing my servlet
classes.
I am getting the following error:

"The requested resource (/servlets/authenticate.jsp) is not available"

Any help you can give would be appreciated.

Thanks

#### Background info #####

I have the directory structure that looks correct...
     app
     app\login
     app\login\login.jsp
     app\WEB-INF
     app\WEB-INF\web.xml
     app\WEB-INF\classes
     app\WEB-INF\classes\authenticateUser.class

Then in my web.xml file I have:

<web-app>

  <!-- Servlet for authenticating WebAtlas login -->
  <servlet>
    <servlet-name>authenticateUser</servlet-name>
    <servlet-class>authenticateUser</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>authenticateUser</servlet-name>
    <url-pattern>/servlets/authenticateUser</url-pattern>
  </servlet-mapping>

</web-app>

Then in my jsp code I have:

<form action="../servlets/authenticateUser" method="post">
    USERNAME : <input type="text" name="usrname" size="25">
    <p>
    PASSWORD : <input type="password" name="usrpass" size="25">
    <p>
    <input type="submit" value="LOGIN">  <input type="reset"
value="CLEAR">
/form>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message