Servlet forward
2 posts in topic
Flat View  Flat View

Posted By:   elango_maragtham
Posted On:   Tuesday, September 25, 2001 07:32 PM

Hi ..
I have a doubt about forwarding between different web servers.My problem is when user types www.some.com he is given a page.when he submits the request will be handled by a different webserver(I put the particular url in the action attribute).I hadle the request in a servlet now i want to send the response to the requested webserver (jsp page) with some details. I set the details using request.setAttribute? in the servlet. How can i forward this request to that jsp page.
Please explain me with Code snippets


Re: Servlet forward

Posted By:   Alex_Chaffee  
Posted On:   Wednesday, September 26, 2001 12:25 PM

Re: Servlet forward

Posted By:   Mittal_Bhiogade  
Posted On:   Tuesday, September 25, 2001 08:40 PM

U can use the RequestDispatcher Metrhod to forward the request.....
ServletContext sc=null;
RequestDispatcher rd=null;
sc = getServletContext();
rd = sc.getRequestDispatcher("/folder1/folder2/some.jsp");
About | Sitemap | Contact