aspose file tools*
The moose likes Struts and the fly likes How to save the form data to redisplay Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to save the form data to redisplay" Watch "How to save the form data to redisplay" New topic
Author

How to save the form data to redisplay

Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
In my appllication

Users enters the data on a form,I have to display that data in text form when they submit for verfication,for that i goto the action and call verifydata.jsp , and here I display the data in text form , if they want to edit any data , i want to go back to the first form with the data in it.But if i put a link click here to edit , it is initiating a new form .

How do i go about solving the problem.
N Nanda
Ranch Hand

Joined: Feb 09, 2004
Posts: 62
Try to go through the supplied struts-example webapp with struts package. It has a good example on that.

Regards,
----------

Niranjan Nanda
Sheldon Fernandes
Ranch Hand

Joined: Aug 18, 2004
Posts: 157
You could do one of the following:
- Make the form bean session scope so that the data is available across requests.
- Use hidden controls on the verify screen to resubmit the data (might not be feasible, depending on amount of controls)

Sheldon Fernandes
[ September 25, 2004: Message edited by: Sheldon Fernandes ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to save the form data to redisplay
 
Similar Threads
Reference to ActionForm in jsp
user select jtable row
How can i pass the objects between two jsps
How to add and edit on a single form using struts
Pre-populating a struts form