> One last question - do the objects instantiated in a JSP page *need* to
> adhere to the JavaBean convention or can they be any Java object at all?
They can be any java object, but if you want to set/get properties
using jsp:setProperty and jsp:setProperty, they have to have the
property setters/getters per JavaBeans specification.
If you intend on using jsp:useBean to instantiate an object and later
use it in a *scriptlet*, you are free to use any object. However, in my
opinion, the JSP should not be dealing with functionality - all such
cases belong at the controller.
-cheers,
Manish
Dave - 05 Oct 2006 00:53 GMT
>> One last question - do the objects instantiated in a JSP page *need* to
>> adhere to the JavaBean convention or can they be any Java object at all?
[quoted text clipped - 7 lines]
> opinion, the JSP should not be dealing with functionality - all such
> cases belong at the controller.
Thanks.