You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Naveen My <pe...@yahoo.com> on 2003/07/02 22:25:57 UTC

calling a servlet...from a .jsp (HTTP Status 404 )

I am unable to call servlet from my jsp....I get the folowing mesg

HTTP Status 404 - /careerCenter/StudentRegistrationServlet

But am able to call the servlet if I type

http://localhost:80/careerCenter/servlet/StudentRegistrationServlet

My directory structure....

D:\Tomcat 4.1\webapps\careerCenter\*jsp files....

D:\Tomcat 4.1\webapps\careerCenter\WEB-INF\*.class files

http://localhost:80/careerCenter/servlet/StudentRegistrationServlet

 

This is my entry in web.xml


 <servlet>
   <servlet-name>StudentRegistrationServlet</servlet-name> 
   <servlet-class>StudentRegistrationServlet</servlet-class> 
  </servlet>
 <servlet-mapping>
   <servlet-name>invoker</servlet-name> 
   <url-pattern>/servlet/*</url-pattern> 
  </servlet-mapping>

 

Any advice...

thanks for the help....

naveen


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: calling a servlet...from a .jsp (HTTP Status 404 )

Posted by Mike Curwen <gb...@gb-im.com>.
Looks like you forgot to put /servlet 

> HTTP Status 404 - /careerCenter/StudentRegistrationServlet



> -----Original Message-----
> From: Naveen My [mailto:perlnaveen@yahoo.com] 
> Sent: Wednesday, July 02, 2003 3:26 PM
> To: Tomcat Users List
> Subject: calling a servlet...from a .jsp (HTTP Status 404 )


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org