Re: <jsp:usebean> scope problems.
Thursday, October 18, 2001 05:03 PM
Yes, you must specify the scope for the bean in each jsp:useBean tag.
Yes, you should be able to read the bean without having to call setProperty, it will just have the default values for properties (ie null for objects, zero for integers, etc).
I'd check that you are setting the id attribute correctly. Both useBean tags must use the same id and scope values.
If that still doesn't work, try printing the output from session.getAttribute("beanName"). This should return the instance of your bean (at least in Jakarta Tomcat it will).