hi rakesh
-----Original Message-----
From: Rakesh Gupta [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, June 06, 2000 1:21 AM
To: [EMAIL PROTECTED]
Subject: JSP and Servlet Communication
I have a question.
I have two JSP page and a servlet. I post to servlet from one JSP page and
within the doPost() method, I want to call
second JSP page and pass query string data. How do I go about it
what you can do is in doPost() get a reference to requestdispactecher and invoke forward method on it with request and response objects as parameter.somethin like
within doPsot()
try{
RequestDispatcher rd = getServletContext().getRequestDispatcher("/Second.jsp");
if(rd!= null)
rd.forward(req,res);
}
catch(Exception e)
{
// any remedial action that you want to take in case of failure
}
Cheers
Abhishek
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
- JSP and Servlet communication Sharan, Abhishek
- JSP and Servlet communication Rakesh Gupta
- Re: JSP and Servlet communication ---Please help Rakesh Gupta
- JSP and SERVLET COMMUNICATION Edward Largoza
