tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KIRTI APTE <kirtia...@yahoo.com>
Subject Request forwarding problem in tomcat
Date Mon, 03 Jul 2000 10:30:29 GMT
Hi folks

I am new to servlet/jsp development in tomcat.I
am running into following problem related to
request forwarded. Any pointers
from you will be greatly appreciated.

Example: You can try this in tomcat.

a> I have the following jsp "a.jsp" ->
<html>
<a href=./b.jsp>Second jsp</a>
</html>

I have stored it in my_context_root/dir1/dir2/a.jsp

b> I have a servlet which has only 2 lines of code
in its  doGet method where I forward the request to
a.jsp

response.setContentType("text/Html");            
getServletContext().getRequestDispatcher("/dir1/dir2/a.jsp").forward(request,response);

So basically I just forward the request to a.jsp.

Mime
View raw message