Obviously, you don't understand JavaBeans....

Don't expect what you are looking for.

J

Thanks for your message at 08:22 PM 7/11/99 -0700, Kevin Burton:
>Why can't a developer provide a constructor with a parameter list?
>
><jsp:useBean id="test" scope="session" class="com.myCompany.test" />
>
>Is is it just me or does this seem like a major pain.  If I want to use
>a constructor with parameters I would have to write an initialize()
>method and call it via:
>
><%
>test.initialize("var1", "var2");
>%>
>
>IMO this just leads to bad code.  I am writing a bean that accesses an
>Oracle database.  I would like to provde a database URL, logon and
>password as part of the constructor.
>
>Any ideas?  Is this slated to become a feature down the road?


John Zukowski    Focus on Java Guide / http://java.about.com
   Author Java AWT Reference / Mastering Java 2 / ...
   jGuru Java Training by the MageLang Institute
   http://www.magelang.com | [EMAIL PROTECTED] - Got Java?

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to