Another solution is:

1, Implement interface [ValidationWorkflowAware] in your Action class

2, In method [getInputResultName], you can load all the data you need,
and then, return constant [INPUT] as the result name.




Actually, In my application, I am using this solution in a little different way:
1, Implement interface [ValidationWorkflowAware] in a class named [BaseAction]
2, In method  [getInputResultName], call method [loadData] which does
nothing for now, and then return constant [INPUT] as the result name
3, Then I use [BaseAction] as the super class for all my Action Class.
When I need to load some data for the validation error case, I can
override method [loadData], and load the necessary data for this
Action class


Hope this helps.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to