On Sun, 6 Jul 2003, ara wrote:

> Date: Sun, 6 Jul 2003 01:27:29 +0900 (JST)
> From: ara <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Validation and TransactionToken
>
> Hi,all
>
> Now I use DynaValidatorActionForm with
> Struts1.1Final release.
>
> I have a question about validate check and
> TransactionToken check.
>
> TransactionToken check is performed in
> Action#isTokenValid(HttpServletRequest request) method.
>
> So,a validate check is performed before checking
> a TransactionToken.
> I think that a validate check does not need to
> be carried out to a bad request that is false
> with TransactionToken check.
> Isn't there any way of performing a validate
> check after a TransactionToken check?
>

You can subclass org.apache.struts.action.RequestProcessor and rearrange
the order of the calls in process() to accomplish this.

> Although it considers it more usual to perform
> a TransactionToken check before a validate check,
> how is it?

I suppose it depends on what kinds of error message you want your user to
see -- the ones from the validation or the one that says you submitted an
invalid page.

Craig

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

Reply via email to