Ok do one thing what ever you want to do with request do it on second page but while 
calling forward to third don't pass anything as the same request will be still valid 
on third page.

If you do this are you getting null values for getParameter or something else.

-----Original Message-----
From: Ashwani Kalra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 4:53 PM
To: [EMAIL PROTECTED]
Subject: Re: jsp:forward tag strange problem


Yes I am doing exactly same. What I have noticed is if in second jsp  I
comment request.get... line and pass some hardcoded value , its working.
That means if I do something with request object, things are not working.
But I cannot avoid this.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks
Ashwani Kalra
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Bhushan_Bhangale
Sent: Tuesday, April 16, 2002 4:42 PM
To: [EMAIL PROTECTED]
Subject: Re: jsp:forward tag strange problem


Hi,

First jsp -

<form name="form1" action="forward1.jsp">
        <input type="text" name="name">
        <input type="submit" value="Submit">
</form>

Second jsp -

<%
        String name = request.getParameter("name");
%>
<jsp:forward page="forward2.jsp">
        <jsp:param name="name1" value="<%=name%>" />
</jsp:forward>

Third jsp -

<%
        out.println("name = " + request.getParameter("name"));
        out.println("<br>name1 = " + request.getParameter("name1"));
%>

It works very fine in IPlanet. I hope you are also doing the same thing. If
yes then it may be a problem with WL.

=========================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==========================================================================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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to