Michael and Diana Finney wrote:

> How can someone programtically add parameters to the request stream
> (HttpServletRequest)?  Is it possible?
>
> (Without using hidden fields in a form)
>
> Thanks,
> Michael
>

You cannot add parameters, but you can add attributes:

    request.setAttribute("idtag", myBean);

This is useful when you want to calculate some values, store them with the
request, and then forward control to another servlet (or JSP page) that will
display the actual result.

If you forward to a JSP page, the passed attribute will be visible as a bean with
"request" scope:

    <jsp:useBean id="idtag" scope="request" ... />

Craig McClanahan

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