yes, it is a bad restriction and that follows from
the bean definition. So now you should be able
only run zero-arg constructor and set parameters
after that via separate calls (some like
setSomething(...)
Regards,
Dmitry
P.S. by the way, see our alaJSP stuff:
http://coldjava.hypermart.net
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
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
Kevin Burton wrote:
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
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Burton
Sent: Sunday, July 11, 1999 11:22 PM
To: [EMAIL PROTECTED]
Subject: jsp:useBean How do I use a constructor with parameters
Why can't a developer provide