TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JSP and Bean constructors



Is there a way instantiate a Bean from a JSP page that takes arguements?

<jsp:useBean id="foo" scope="session" class="foo.myBean" />

Will instantiate myBean, using the myBean() constructor, what if I want to
pass in a Properties class to the myBean contructor?

myBean(Properties config) 

How can I do that with a JSP page?

-- 
Bob Tanner <tanner@real-time.com>       | Phone : (952)943-8700
http://www.mn-linux.org                 | Fax   : (952)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9