Hi

What sort of bug can happen in the web container. What do I have to do
to rectify
that?? I am sure that the request object will be passed to the second
JSP..


REGARDS
Sankar

Hans Bergsten wrote:

> BMS Robot Email wrote:
> >
> > Hi Sankar,
> > Parameters of the previous HTML or a prior JSP, are not forwarded
from
> > the current JSP1 to the next JSP2 unless you set them again in JSP1.

> > supposing the required parameters are p1, p2 and values are v1, v2
> > Set the parameters in JSP1 using something like
> >         <jsp:forward page="../JSP2">
> >         <jsp:param name="p1" value='v1'/>
> >                 <jsp:param name="p2" value='v2'/>
> >         </jsp:forward>
>
> Actually, the web container is supposed to pass on all parameters
> to the target of a <jsp:forward> or <jsp:include> according to the
> spec.. You only need to use <jsp:param> if you need to *add* new
> parameters to the request for the target page. If the original
> parameters are not available in the target page, it's due to a bug
> in the web container.
>
> Hans
>
> > [...]
> > -----Original Message-----
> > From: M Sankar [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, September 09, 2001 10:20 PM
> > To: [EMAIL PROTECTED]
> > Subject: jsp:forward page
> >
> > Hi,
> >
> > I am posting a request from an HTML to a jsp page(call it jsp1). Now

> > jsp1 checks for some parameters using request.getParameter and pass
this
> > request using jsp:forward to jsp2. But from the jsp2 when I do
> > request.getParameter, I am getting null values.
> >
> > Is it that the new jsp page does not understand the request object.
But
> > some documentation says that jsp: forward just forwards the request
to a
> > new page for processing.
> >
> > Replies from gurus would be helpful
> > Thx
> > sankar

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to