This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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

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.


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:
subject: How to save the form data to redisplay
jQuery in Action, 3rd edition