>
> You can also do this without using <jsp:useBean /> tags:
>
> TestBean myTestBean = (TestBean) session.getValue("testBean");
> if(myTestBean == null)  // if myTestBean doesn't exist in session yet,
> instantiate one and add it to session.
> {
>     myStringBean = new TestBean();
>     session.putValue("testBean", myTestBean);
> }

Last 4 lines should be
{
     myTestBean = new TestBean();
     session.putValue("testBean", myTestBean);
}

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