On Tue, 18 Jan 2000, 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>

You'll need <% ... %> around the form.init() call.  Did you type it wrong
in the message???

John K Peterson  --  IT Services Development  --  Brigham Young University
Internet: [EMAIL PROTECTED]                      Phone: (801) 378-5007

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