struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Validation and TransactionToken
Date Sat, 05 Jul 2003 18:09:49 GMT


On Sun, 6 Jul 2003, ara wrote:

> Date: Sun, 6 Jul 2003 01:27:29 +0900 (JST)
> From: ara <htecara@yahoo.co.jp>
> Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>,
>      arahtec@anet.ne.jp
> To: struts-user@jakarta.apache.org
> 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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message