struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: Form Beans in Session
Date Mon, 05 Jun 2006 15:41:42 GMT

Hi ,
Instead of putting every form bean in session, you can put custom VO in

Let Page1.jsp, Page2.jsp,Page3.jsp have,, as beans and
,, be the Action Classes respectively.

Create,,, as custome Vos
which hold the parameters in JSP like form beans.
Incase of form beans make all fields as String fields(Date as String,
int As String etc..), incase of Vos use correct fields(date as Date, int
as int etc..)

Use Composition like has the three vos in it.

In the Action Classess write two methods(in each) like getVOFromForm,
getFormFromVO which set custom VO from form and vice versa.

Put the BaseVO in session.
I hope this will resolve most of your session related problems.
-----Original Message-----
From: Hanmay Udgiri []
Sent: Monday, June 05, 2006 8:41 PM
To: Struts Users Mailing List
Subject: Form Beans in Session

We have Pages where user enters some data in step 1 ,step 2 and in last
step these data should be submitted to DB.
We are putting the all form beans in session as all of our transactions
are multiple step process.
Is there any better of way not putting the form beans in session????

Thanks and Regards
Hanmayya Udgiri

The information contained in this electronic message and any attachments to this message are
intended for the exclusive use of the addressee(s) and may contain proprietary, confidential
or privileged information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy all copies
of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email
and any attachments for the presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message