Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server side validation question

 
Vito Andolini
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an action mapping that displays a page with a form. The action gathers some dynamic data for drop-down lists, etc.

The form is submitted, but with errors, and validation is configured to run. I understand that I can include an "input" attribute for the action mapping so that the form could be redisplayed for the user. But I need to run the action again, not just display the form, because the action needs to gather the dynamic data for the form.

Any idea how this can be done?

Thanks very much...
 
Vito Andolini
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind, figured it out!

if you set the inputForward attribute on the controller to true:



you can set the input attribute on the action to be an Action.forward, which allows you to forward to another action.



 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic