File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!