"Yang, Beinan, BGM" wrote:
>
> Hi, No body interested this issue ?
>
> Ben Yang
>
> -----Original Message-----
> From: Yang, Beinan, BGM
> Sent: Saturday, October 16, 1999 1:13 PM
> To: [EMAIL PROTECTED]
> Subject: How to use <jsp:forward page=.../> with parameters ?
>
> Can some one tell me how to use <jsp:forward page=.../> with parameters ?
> I tried <jsp:forward page="nextPage.jsp?param1=Y" />, but it doesn't work ?

If you search the archives you will find that it's been answered many times.

Anyway, in JSP 1.0 (Servlet 2.1) support for query parameters in a forward
URI is not formally specified so it may or may not work based on your
servlet container. The most portable solution is to set the values you
want to make available to the target as request attributes instead, e.g.
using <jsp:useBean scope="request" ...>.

In JSP 1.1 support of for query parameters *is* formally specified so it
should work in any JSP 1.1 compliant container (not that many yet). In
addition JSP 1.1 adds <jsp:param> actions that can be used instead of the
query string.

--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to