try to keep Session as light as possible. With that in mind, just save all you need, creator in your case, in Session.
Navjot >-----Original Message----- >From: Caroline Jen [mailto:[EMAIL PROTECTED] >Sent: Saturday, December 13, 2003 12:15 PM >To: [EMAIL PROTECTED] >Subject: Form and Session > > >The statement below in my JSP can write out the value >of the "creator" property in the articleForm: > ><bean:write name="articleForm" property="creator"/> > >I want to pass the value of the "creator" in a session >object. What should I do in my JSP? > ><% >String creator = (String)articleForm.getCreator; >session.setAttribute("creator", creator); >%> > >Or, can I pass articleForm in a session object? ><% session.setAttribute("articleForm", articleForm);%> > > > > >__________________________________ >Do you Yahoo!? >New Yahoo! Photos - easier uploading and sharing. >http://photos.yahoo.com/ > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]