You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kalra, Ashwani" <as...@cgey.com> on 2003/12/02 07:12:28 UTC

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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Need to retain the data of the previous page

Posted by "Khalid K." <gr...@maikada.com>.
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:ashwani.kalra@cgey.com] 
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org