There's an article that mentions this and other Servlet/JSP architecture
aspects at http://www.javareport.com/html/from_pages/ftp_col.shtml .

Here's code from the article that shows forwarding-with-parameters.  Note
that this isn't exactly the same as calling the jsp with URL parameters
(e.g. http://foo.jsp?band=SkinnyPuppy) because your jsp will need to read
the parameters with request.getAttribute("band") instead of
request.getParameter("band").

RequestDispatcher dispatcher = getServletContext()
 .getRequestDispatcher("authComplete.jsp");
request.setAttribute("auth", auth);
dispatcher.forward(request, response);

Hope that helps,
Brien Voorhees

----- Original Message -----
From: Yang, Beinan, BGM <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 20, 1999 3:17 PM
Subject: Re: How to use <jsp:forward page=.../> with parameters ?


> 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
?
>
> Thanks in advance.
>
> Ben Yang
>
>
===========================================================================
> 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
>
>
===========================================================================
> 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
>

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