Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

S2 : Validation per Action method - ideas?

j alex

2007-08-09

Replies:

Hi,

Is there a way to declaratively restrict validations depending on the method
within the Action? - this could be useful for wizard-like forms where each
step of the wizard has a set of fields ; corresponds to a different method
but all of them share the same Action.

I can think of having an expression validator based on currentstep added to
every field short-circuited ; but that's more of a workaround rather than
the right way to do it.

Thanks,
Joseph
©2008 junlu.com - Jax Systems, LLC, U.S.A.