aspose file tools*
The moose likes Struts and the fly likes Hot to access Form values before submit to action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hot to access Form values before submit to action" Watch "Hot to access Form values before submit to action" New topic
Author

Hot to access Form values before submit to action

Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
Hi
I am developing an application using struts.I have a form , after user enters the data, i want to display that data on another page for verification,before it even goes to the action.

How can i access that form bean on that page.

Thanks
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Both pages should have an ActionMapping. The Action for the first one could just be a SuccessAction. Use the same ActionForm for both pages. If the ActionForm is in request scope you might need to store some of the values as hidden fields on the verification page.


A good workman is known by his tools.
Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
Thanks for the reply.

Is that the only way ?Probably i have to go with that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hot to access Form values before submit to action