;> why I
>> >>> cannot see how it
>> >>> should help.
>> >>>
>> >>> Could you explain your suggestion a little more
>> in
>> >>> detail?
>> >>> Would it be rea
too?
> >>>
> >>> Thank you very much in advance,
> >>> Basti
> >>>
> >>>
> >>>
> >>> newton.dave wrote:
> >>> >
> >>> > Create two validation XML files, one for each
between them in a couple
>>> > different ways, the easiest may be to just create
>>> two
>>> > action mappings, one for each method.
>>> >
>>> > d.
>>> >
>>> > --- lbastil <[EMAIL PROTECTED]> wrote:
>
rote:
>> >
>> >>
>> >> Is there any way with the build in declarative
>> >> validation possibilities in
>> >> struts 2 (annotations, xml)
>> >> to do something like conditional validation in
>> the
>> >> followin
conditional validation in
> the
> >> following sense:
> >>
> >> in the action class I have a model class, where
> on
> >> action method one i want
> >> to validate
> >> a special subset of model attributes and on
> action
> >
n
>> method two another subset
>> of attributes?
>>
>> (note the model in action is used "modeldriven")
>>
>> Thank you for any idea,
>> Basti
>> --
>> View this me
utes and on action
> method two another subset
> of attributes?
>
> (note the model in action is used "modeldriven")
>
> Thank you for any idea,
> Basti
> --
> View this message in context:
>
http://www.nabble.com/-s2--conditional-validation-tf4843582.ht
and on action method two another subset
of attributes?
(note the model in action is used "modeldriven")
Thank you for any idea,
Basti
--
View this message in context:
http://www.nabble.com/-s2--conditional-validation-tf4843582.html#a13857280
Sent from the Struts - User mailing list
;
>
> true
>
>
>
> ...
>
>
>
>
>
> cilquirm <[EMAIL PROTECTED]>
> 17/09/2007 16:50
> Veuillez répondre à
> "Struts Users Mailing List"
>
>
> A
> user@struts.apache.org
> cc
>
> Objet
> Re: [S2] C
17/09/2007 16:50
Veuillez répondre à
"Struts Users Mailing List"
A
user@struts.apache.org
cc
Objet
Re: [S2] Conditional Validation (test if field is present in JSP)
somewhat hackish, but you can accomplish this by using expressions :
#params['attrib'] != null ? att
g of this flag ?
>
> Thanks for your tips.
>
> Regards,
>
> Michaël
>
--
View this message in context:
http://www.nabble.com/-S2--Conditional-Validation-%28test-if-field-is-present-in-JSP%29-tf4465421.html#a12737286
Sent from the Struts - User mailing list archive at Nabble.com.
---
Hi all,
We have an Action redirecting to several JSP, depending on the customer.
But the forms of these JSP are different : some fields are added/removed
in some JSP.
So the automatic validation fails for those fields not existing in some
JSP.
We bypass the problem by copying the Action metho
12 matches
Mail list logo