Hi!
I've found a method for sending the parameters:

I want to use the POST method (better to sending strings and for design).
Finally, the jsp:forward didn't ran, so I have to programatically generate an
HTML FORM, whit the parameters as hidden fields. Then, write a script like
this:


<script>
document.name_of_form.action = "forwarding_page.jsp";
document.name_of_form.submit();
</script>


I would be better if the jsp:forward tag ran. Has anybody an example?

Thank you all!!!

Marc


Mike McKechnie wrote:

> > Hi everybody!
> > I need help. I have a jsp page and I want to send a response (a
> > parameter with a value), to another jsp page. How can I do that?: I have
> > to send a HTML FORM, or I can use a method like setParameter, to
> > generate a parameter with its value.
> >
> Just invoke the response.sendRedirect with the URL for the JSP page and the
> parameters in the normal GET format "nextpage.jsp?key=value&key=value".
> Don't forget to encode the url for redirect so that your pages work on
> non-cookie clients.
>
> _3
> M

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