Try this out!
response.redirect("aaa.jsp?name1="+value1+"&name2="+value2)
--- Shao <[EMAIL PROTECTED]> wrote:
> Hello
>
> I passed parameters to other jsp file like this:
> <jsp:forward page="aaa.jsp" />
> <jsp:param name="name1" value="value1" />
> <jsp:param name="name2" value="value2" />
> </jsp:forward>
> but in aaa.jsp, the value of both name1 and name2
> were null:
> str1 = request.getParameter("name1");
> str2 = request.getParameter("name2");
> str1 and str2 equal "null", that's why? Thank you...
>
> Regards
> plex
>
>
===========================================================================
> 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
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.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://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