In JSP #2, try using <% instead of <%=
Michael

> -----Original Message-----
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of a b
> Sent: Wednesday, March 14, 2001 5:29 PM
> To: [EMAIL PROTECTED]
> Subject: jsp:forward question?
>
>
> Hello,
>
> I'm attempting to forward from one jsp to another jsp
> with parameters, but when I try out.printl("param") it
> displays as NULL... Is there something that I'm
> missing...?  Is there another way that perhaps I
> should try? Is it possible to do a RequestDispatcher
> call from a JSP.. if so.. would you know where I could
> see and example? Any help would greatly be
> appreciated. Thanks in advance.
>
> Here's what the code looks like:
>
> -- JSP Page #1 --
> <jsp:forward page="TestPage1.jsp">
>     <jsp:param name="testparm1" value="Hello"/>
> </jsp:forward>
>
> --JSP Page #2 --
> <%= String testLine1 =
> request.getParameter("testparm1"); %>
> <%= out.println (testLine1);%>
>
> -- I've also tried this....
>
> <%= request.getParameter("testparm1");%>
>
>
>
> __________________________________________________
> 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

===========================================================================
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