tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naveen My <perlnav...@yahoo.com>
Subject HTTP Status 404.../Redirecting JSP from servlet......../How to set web.xml????
Date Tue, 08 Jul 2003 04:25:30 GMT

I am unable to redirect a JSP page from a servlet....

This is my directory structure...

D:\Tomcat 4.1\webapps\careerCenter\jsp\ *.jsp's

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

 

My WEB.xml has following entry....
 <servlet>
   <servlet-name>StudentLoginServlet</servlet-name> 
   <servlet-class>StudentLoginServlet</servlet-class> 
  </servlet>
 <servlet-mapping>
   <servlet-name>invoker</servlet-name> 
   <url-pattern>/servlet/*</url-pattern> 
  </servlet-mapping>

My code in jsp is

<form  method="POST" action="./servlet/StudentLoginServlet">

 

My code in servlet is 

res.sendRedirect("./jsp/StudentLogin.jsp");

 

Please help...

thanks

naveen

 


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message