So your error messages are customized based on user? That doesn't make sense
to me. Are you sure?

Paul

On 8/10/07, j alex <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> This is somewhat related to Matt's post on conditional validation at
> http://www.nabble.com/Re:-Conditional-validation-p11990883.html ; i dont
> have the original email on struts-user (joined the group only last week!)
> to
> reply to :
>
> I need some help regarding the extent to which we can apply visitor field
> validation. Say, my domain object (Address - with attributes addrline1,
> addrline2, ZIP etc.) is buried deep in a hierarchy - ie app.user1.address;
> and we define only "app" in the Action. Can we declare a visitor
> validation
> on "app" and define the  rules on Address-validation.xml ? .
>
> My requirement is that we could use address in different objects ; like
> app.user1.address ; app.user2.address - and the error message needs to
> be customized
> depending on user1, user2 etc . It'll be elegant if the validation rules
> are
> defined just once for Address. Right now, the only way i know to achieve
> is
> to define ALL fields in the <action>- validation.xml and hardcode the
> message for each situation ; which i think is an overkill.
>
> Please let me know if you've any suggestions/ideas.
>
> Thanks,
> Joseph
>

Reply via email to