He wants to use javascript validation generated from struts
 

-----Original Message-----
From: Li [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 11, 2006 3:23 PM
To: Struts Users Mailing List
Subject: Re: To validate password & confirmpassword fields

sorry, my mistakes,

er you can create validate method and compare them there. then in your
struts-config.xml, make sure the action that control the form submission
has input page. in order to avoid validation check at first time. you
can define an action that only forward to your password input page. the
the action that handles the form submission will be different from this
actiona which is bundle with your action form.

:P

On 8/11/06, Rauf Khan <[EMAIL PROTECTED]> wrote:
> Hi,
>
>     Iam doing validation for registration page where password & 
> confirmpassword fields should have the same password if not an alert 
> msg through javascript(validator framework) should be shown. I have 
> validated rest of the fields through validator framework only.
>
> Khan
>
>
> On 8/11/06, Li <[EMAIL PROTECTED]> wrote:
> >
> > seems you are using your own authentication module, one thing you 
> > can do it using javascript, or you can use form authentication, and 
> > define login page and login error page, so if your userid or 
> > password is not valid, login error page will showed up.
> >
> > Wish it helps
> >
> > Regards
> >
> > On 8/11/06, Rauf Khan <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > >    I trying to validate the fields using Validator Framework at 
> > > client
> > side,
> > > Iam not able to validate the password & confirmpassword fields 
> > > inorder
> > to
> > > show an alert msg if password & confirmpassword fields are not 
> > > same. Can
> > i
> > > know how to handle this case.
> > >
> > > <html:password property="password"/> <html:password 
> > > property="confirmpassword"/>
> > >
> > > Thanks in advance.
> > >
> > > Regards
> > > Khan
> > >
> > >
> >
> >
> > --
> > When we invent time, we invent death.
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
When we invent time, we invent death.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to