Mike Coburn wrote:
> Sorry if it has been asked before but I cannot find the answer:
>
> How if one jsp got a value with:
>
> <%= request.getParameter("username") %>
>
> is it possible to pass it to another jsp page without using a bean.
>
> If it is possible how?

If you use <jsp:include> or <jsp:forward> to invoke the other JSP page,
it has access to all the same request parameters. In other words, you
don't have to do anything.

If you redirect to the other page, you need to add a query string with
the parameter in the URL you use for the redirect.

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
JavaServer Pages        http://TheJSPBook.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