Serialized JavaBean

Q

Can a JSP page instantiate a serialized bean?

✍: FYICENTER.com

A

No problem! The useBean action specifies the beanName attribute, which can be used for indicating a serialized bean.

A couple of important points to note. Although you would have to name your serialized file like "filename.ser", you only indicate "filename" as the value for the beanName attribute. Also, you will have to place your serialized file within the WEB-INFjspbeans directory for it to be located by the JSP engine.

2007-04-03, 4543👍, 0💬