Paul Benedict wrote:
I wonder if anyone has encountered this. This might be a bug (highly likely) 
and I'd like to find
out.

The LocaleAction can receive a "page" parameter which redirects it to the 
specified URL after
setting the locale. Well I made myself a DynaActionForm which contained this 
parameter (along with
the others) and the action always failed.

It seems that in Struts 1.2, the DynaValidatorForm.setPageFromDynaProperty 
method looks for a
property named "page" and requires that is an integer. Obviously this is a 
conflicting
requirement, causes a ClassCastException, and thus the LocaleAction is 
incompatible with a
DynaActionForm.

I am pretty sure this is a bug.

Paul

LocaleAction should work fine with a DynaActionForm, but you're right that there's a conflict with DynaValidatorForm. If you need LocaleAction's behaviour in conjunction with a DynaValidatorForm, you'll need to modify LocaleAction to use a different form property instead of page.

L.


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

Reply via email to