--- "Kennedy, Ed" <[EMAIL PROTECTED]> wrote: > 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>
it should be <url-pattern>/xyz</url-pattern> and u can access this servlet like http://IP/app/xyz or without url mapping http://IP/app/servlet/authenticateUser regards Sonam Singh [EMAIL PROTECTED] > </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> > __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
