Sue Spielman wrote:
>
> I'm using JavaWebServer 2.0,JDK 1.2.2,JSWDK 1.0.1 and the JSP 1.1 PR2 spec....with
>that said.
> I'm simply trying to execute an init method for a bean, once, when the bean is
>instantiated,
> as it states is possible in the JSP spec. However the method is never called. I
>searched
> the archive and didn't find this posted. Can someone offer insight into why this
>doesn't
> work? Also, just note, the session has already been validated.
>
> <jsp:useBean id="form" scope="session" class="gui.forms.PartForm" />
> form.init((String)session.getValue("user"),
> (JDBCConnection)session.getValue("connection"));
> </jsp:usebean>
Looks like a bug in JWS 2.0. I suggest you post teh question in a JWS forum, since
what you do should work (assuming the bean is not already created in the session
scope).
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
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