Andy Sykes wrote:
My forms all submit to a different action than that which renders the
pages.
Is there a recommended way to prevent/mitigate the effect of users
directly calling the actions (via their URL) that forms are submitted
to? In this case, the actions' fields are null, which is somewhat
irritating in an action method that has associated validation..
The simplest solution, although somewhat hacky, might be to just check
for a hidden form token in the action's validate method. If it's not
there, it wasn't reached from the form. If it is, call super.validate()
which will run any XML/annotation-based validation.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org