>
> 1. creating a Java Bean from the Servlet to store data and have the
> returning JSP access the Java Bean via <BEAN> tags and,
>
> 2. creating a data class (not a bean) from the Servlet and placing the
data
> class in the session object for retrieval by the returning JSP page.
>
Using a bean with session scope is the same as instantiating a class and
storing the object in the session. The advantage to using tags is that
they're handy shortcuts for code that does lazy instatiation, or which
invokes setter methods matching form parameters.

_3
M

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

Reply via email to