Ok then what is the solution,
you mean to say I will handle through back end only.
Also in validation-rule.xml what I need to modify.

-Jignesh
On Monday 15 March 2004 16:32, Joe Hertz wrote:
> Check the Bugzilla. I believe it works in the <html:errors> tag, but you
> won't get a javascript popup.
>
> If memory serves, there's a security concern about using minlength in
> password fields -- basically the logic goes something like, "Do you really
> want to be providing a front end validation that tells a cracker how long
> his randomly guessed password attempts must be".
>
> If you *really* want this though, you can just go ahead and modify the
> javascript you'll find in the validation-rules.xml file.
>
> > -----Original Message-----
> > From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 15, 2004 5:55 AM
> > To: Struts Users Mailing List
> > Subject: Re: SV: Form Validation
> >
> >
> > I am trying to use min length in javascript for password, but
> > it is not
> > working.
> > I am just wondering why it works for all the fields but not
> > password. Can I have any input.
> >
> > -Jignesh
> >
> > On Monday 15 March 2004 16:14, Nina Bertilsdotter wrote:
> > > Sorry, yes, it does extend ValidatorForm : )
> > >
> > > -----Ursprungligt meddelande-----
> > > Frï: Otto, Frank [mailto:[EMAIL PROTECTED]
> > > Skickat: den 15 mars 2004 11:41
> > > Till: 'Struts Users Mailing List'
> > > ïne: AW: Form Validation
> > >
> > > Does your form class extend the ValidatorForm?
> > >
> > > -----Ursprngliche Nachricht-----
> > > Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> > > Gesendet: Montag, 15. Mïz 2004 11:39
> > > An: 'Struts Users Mailing List'
> > > Betreff: SV: Form Validation
> > >
> > >
> > >
> > > Thanks Budi, but that didn't seem to do the trick either.  When I
> > > enter 4 (min range is 1900) in the "year" field I still
> >
> > don't get an
> >
> > > error.....
> > >
> > > -----Ursprungligt meddelande-----
> > > Frï: Budi Rostiarso [mailto:[EMAIL PROTECTED]
> > > Skickat: den 15 mars 2004 11:31
> > > Till: Struts Users Mailing List
> > > ïne: RE: Form Validation
> > >
> > > Try putting max arg, because i think range validation must
> >
> > be supplied
> >
> > > with min and max (range) value.
> > >
> > >                <arg1 name="intRange" key="${var:min}"
> > > resource="false"/>
> > >                <arg2 name="intRange" key="${var:max}"
> > > resource="false"/>
> > >                      <var>
> > >                        <var-name>min</var-name>
> > >                        <var-value>${minYear}</var-value>
> > >                      </var>
> > >                      <var>
> > >                        <var-name>max</var-name>
> > >                        <var-value>${maxYear}</var-value>
> > >                      </var>
> > >
> > >
> > > CMIIW,
> > >
> > > bdr.
> > >
> > > -----Original Message-----
> > > From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, March 15, 2004 5:25 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: SV: Form Validation
> > >
> > >
> > >
> > > Thank you, Frank, I was indeed missing the "validation='true'" but
> > > that didn't seem to fix my problem... must be something
> >
> > else; I guess
> >
> > > I've got to keep digging.
> > >
> > > Nina
> > >
> > > -----Ursprungligt meddelande-----
> > > Frï: Otto, Frank [mailto:[EMAIL PROTECTED]
> > > Skickat: den 15 mars 2004 11:13
> > > Till: 'Struts Users Mailing List'
> > > ïne: AW: Form Validation
> > >
> > > Hi Nina,
> > >
> > > you had to set validation="true" in your action definition
> > > (struts-config.xml).
> > >
> > >
> > > Regards,
> > >
> > > Frank
> > >
> > > -----Ursprungliche Nachricht-----
> > > Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> > > Gesendet: Montag, 15. Marz 2004 11:09
> > > An: 'Struts Users Mailing List'
> > > Betreff: Form Validation
> > >
> > >
> > > Hi People,
> > > I'm pulling my hair out trying to get form validation to
> >
> > work through
> >
> > > the validator, any help will be much appreciated.  In this
> >
> > example I'm
> >
> > > trying to
> > > validate a single field ("year" of type int), should be
> >
> > pretty easy, one
> >
> > > might think, but alas, I'm stuck and I can't get it to
> >
> > work. I'm sure it
> >
> > > is
> > > something simple but I've gone blind from looking at it. Thanks.
> > >
> > > JSP:
> > > <html:form action="MyAction.do">
> > > <html:errors/>
> > > <html:text property="year"/>
> > >
> > > Struts-config:
> > >
> > > <form-beans>
> > >         <form-bean  name="myForm" type="myForm"/> </form-beans>
> > > <action   path="MyAction "
> > >               type="packageName/MyAction"
> > >               scope="request"
> > >               name="myForm"
> > >               input="myPage.jsp ">
> > >         <forward name="success" path="myPage.jsp"/>
> > > </action>
> > >
> > > Validation.xml:
> > >
> > > <form name="MyAction">
> > >           <field property="year"
> >
> > depends="required,integer,intRange">
> >
> > >                 <arg0 key="MyAction.year"/>
> > >                 <arg1 name="intRange" key="${var:min}"
> > > resource="false"/>
> > >                 <var>
> > >                     <var-name>min</var-name>
> > >                     <var-value>1900</var-value>
> > >                 </var>
> > >            </field>
> > > </form>
> >
> > ---------------------------------------------------------------------
> >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to