struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thilo Ettelt>
Subject [s2] Different Annotated Validations for different action methods
Date Tue, 04 Dec 2007 12:01:15 GMT
Hey all,

I'm trying to figure out how to validate my action methods differently.

For example I've got a modeldriven User bean with the following two  
annotated methods

- processLogin

- processSignup

Now I want the first annotation to only check for the username and  
password, but the second annotation is supposed to check for other  
things like email too.

However when I call the appropriate action mapping which calls  
processSignup it processes both Validations, which results in a  
invalid email address error for the login in addition to the wrong  
username and password.

So how can I separate the two validatio annotations without needing  
separate classes?

- Thilo

Mit freundlichen Grüßen,

Thilo Ettelt              Telefon: +49-421-6265-111 GmbH        Telefax: +49-421-6265-100
Mary-Astell-Strasse 2     E-Mail:
28359 Bremen    

Developer (YourVids)

Handelsregisternummer: HRB 19256 beim AG Bremen
Dipl.-Wirt.-Ing. W. Schlösser
Dipl-Ing. Frank Rothgänger
Bennet Bock

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message