Paul Benedict wrote:
You can use this pattern:

* Turn automatic validation off.

* If your action was executed as a GET, branch to viewing logic.

* If your action was executed as a POST, branch to validation logic and
submission logic.

Another approach is to retain declarative validation and a single action, but use two action mappings. Both mappings point to the same action class, one has validation turned off and handles form display while the other has validation turned on and handles the submit.

You presumably already have some mechanism to distinguish form request from form submit, so you can apply Paul's solution substituting that mechanism for the GET vs. POST test.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to