the easiest way is to configure login/(cancel)logout/register to separate
actionsA complete example is located at
http://struts.apache.org/2.x/docs/simplelogin-with-session.html
ThanksMartin______________________________________________Disclaimer and
confidentiality noteEverything in this e-mail and any attachments relates to
the official business of Sender. This transmission is of a confidential nature
and Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within this
transmission.> > > I have a login form. it has 3 buttons:> > 1. login> 2.
register> 3. cancel> > when the user clicks the login - the application
validates that the user> input data on the 'username' and 'password' fields.> >
Question: how can I avoid this validation if the user clicks either> 'register'
or 'cancel' > > I'm using struts2:> > this is the code:> > <s:form
action="UserLogin" validate="true">> <s:textfield key="username" />>
<s:password key="password" showPassword="true"/>> <!-- <s:textfield key="now"
/> -->> > <s:submit action="UserLogin_login" key="button.login" />> <s:submit
action="UserLogin_register" key="button.confirm">
onclick="form.onsubmit=null"/>> <s:submit action="UserLogin_cancel"
key="button.cancel"> onclick="form.onsubmit=null"/>> > </s:form>> thanks> -- >
View this message in context:
http://www.nabble.com/how-to-avoid-form%27s-validation-if-the-user-choose-cancel--tp14582809p14582809.html>
Sent from the Struts - User mailing list archive at Nabble.com.> > >
---------------------------------------------------------------------> To
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL
PROTECTED]>
_________________________________________________________________
Get the power of Windows + Web with the new Windows Live.
http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_122007