• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hot to access Form values before submit to action

 
Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

Is that the only way ?Probably i have to go with that.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic