It is cleaner if you use javaBean to pass your value.
Tiana Zhang wrote:
> There are several ways you can do:
> 1. If you are using a java bean, after set the page scope to "application", in
> the first jsp page, you can use setProperty to set the value of the selected
> item. in the second jsp page, you can use getProperty to retrieve the value.
>
> 2. Set the whole scope to "session", You can store the selected item in a
> session object and retrieve it from session object:
> in jsp1:
> session.putValue("selectedItem", "value");
>
> in jsp2:
> session.getValue("selectedItem");
>
> Have fun.
>
> Tiana
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets