I recommended this to someone earlier - it might help:
http://strutswizard.sourceforge.net/
Paul
------------------------------------------------------------
Global Equity Derivatives Technology
Deutsche Bank [/]
Office +44 (0)20 754 55458
Mobile +44 (0)7736 299483
Fax +44 (0)20 7547 2752
------------------------------------------------------------
"Khalid K."
<[EMAIL PROTECTED] To: Struts Users Mailing List
<[EMAIL PROTECTED]>
om> cc: "Kalra, Ashwani" <[EMAIL
PROTECTED]>
Subject: RE: Need to retain the data
of the previous page
02/12/2003 16:58
Please respond to
"Struts Users
Mailing List"
If you have a wizard style pages, then you can declare the form in the session.
At the end of the process dump the data to a value object. But in this case,
you have to do house cleaning yourself i.e. only validate/populate pages, dump
the form at the end etc. etc...
So What will happen is:
If you have Page A, B, C , they will all share form X (in session scope)
So you will have Action A, Action B, Action C sharing form X.
Khalid
> Yeah I was thinking of the same approach. I thought if there is better way.
> Means I have to keep a collection of Page A form beans in session
>
>
>
>
> >-----Original Message-----
> >From: Khalid K. [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, December 02, 2003 11:54 AM
> >To: 'Struts Users Mailing List'
> >Subject: RE: Need to retain the data of the previous page
> >
> >
> >You have to persist your data. If you declare your form in request
> >scope, then once user clicks on submit on page A, you have to save the
> >data to a Value Object stored in session.
> >
> >Khalid
> >
> >
> >-----Original Message-----
> >From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
> >Sent: Monday, December 01, 2003 10:12 PM
> >To: Struts (E-mail)
> >Subject: Need to retain the data of the previous page
> >
> >
> >hi,
> >I have the following flow.
> >Page A : Display some rows. These rows are not in DB.Initially there
> >are no rows. It contains add button
> >
> >Page B : On clicking the add button of Page A, page B opens
> >up the form
> >which user fills and forward back to page A.
> >Page A now displays new row along with already existing rows if there
> >were.
> >
> >my Question . How to retains the data of page A. Can struts handle it.
> >Or I have to use the session object .
> >
> >TIA
> >Ashwani
> >
> >____________________________________________________
> >This message contains information that may be privileged or
> >confidential
> >and is the property of the Cap Gemini Ernst & Young Group. It is
> >intended only for the person to whom it is addressed. If you
> >are not the
> >intended recipient, you are not authorised to read, print,
> >retain, copy,
> >disseminate, distribute, or use this message or any part
> >thereof. If you
> >receive this message in error, please notify the sender immediately and
> >delete all copies of this message.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >---
> >Incoming mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003
> >
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> ____________________________________________________
> This message contains information that may be privileged or confidential and
> is the property of the Cap Gemini Ernst & Young Group. It is intended only
> for the person to whom it is addressed. If you are not the intended
> recipient, you are not authorised to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all copies
> of this message.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Khalid K.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorized copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]