AW: Validator query
Hi, The ValidatorForm will match the formset name with the form-bean name. it uses mapping.getAttribute() to init the validator The ValidatorActionForm will match the formset name with the action-mapping path. mapping.getPath() for init the validator and the same for the DynaValidator(Action)Form (which are declared via xml in struts-config.xml greetings matthias -Ursprüngliche Nachricht- Von: Sudhakar G [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 20. Dezember 2003 06:21 An: [EMAIL PROTECTED] Betreff: Validator query Hi, why validator framework provides two classes ValidatorForm and ValidatorActionForm if both going to behave same way? Thanks in advance. cheers Sudhakar DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - 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]
AW: validator
Hi, Use this datePatternStrict dd.MM. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 14. Oktober 2003 21:59 An: [EMAIL PROTECTED] Betreff: validator Hello all: I'm having problems using the Validator plugin to check a date field. In the form i have a simple textbox and I'm using the following validation: datePattern MM/dd/ On submit I get the error: "datePattern has no properties". I traced down the error to a line of code where de length of the variables is tested: if(datePattern.lenght>0){ This code is generated by Validator so I don't know what to do about it. Any ideas? Thanks in advanced. - 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]
AW: Validator Framework: Can not evaluate regular expression
Hello! This field is not declared as a password field yet. It is a normal textfield.. Other ideas? Dirk -Ursprüngliche Nachricht- Von: David Graham [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. Juli 2003 23:25 An: Struts Users Mailing List Betreff: Re: Validator Framework: Can not evaluate regular expression Password fields are only run against the "required" validation in the client side javascript for security purposes. Password fields are validated with all rules on the server side though. David --- Dirk Behrendt <[EMAIL PROTECTED]> wrote: > Hi! > > No, I do not have an extra '<' in my code. The regular expression is not > evaluated. > > Example: > When I use ^[a]$ the user only should input "a". > But in my case you can input anything you want. > > There are some ideas? > > Dirk > > > > If your code is a direct cut-n-paste, you've got an extra '>' in your > first regular expression? > > >^[a-zA-Z0-9_.-]*$ > > -jeff > > On Wednesday, July 30, 2003, at 07:14 AM, Dirk Behrendt wrote: > > > >^[a-zA-Z0-9_.-]*$ > > > Hello! > > I want to check login and password fields. > > If I submit with empty textfields, the errors are shown correct ( > required). But my regular expression was ignored. (see code below). > > What is necessary to check regular expressions? > > > > > Dirk > > > Struts-config.xml > - > > form-bean name="loginForm" >type="sample.LoginForm"/> > > > type="sample.LoginAction" >name="loginForm" >scope="session" >validate="true" >input="/loginDone.jsp"> > > > > validation.xml > -- > > > property="login" >depends="required,mask"> > > > > mask > >^[a-zA-Z0-9_.-]*$ > > > property="password" >depends="required,mask"> > > > > mask > ^[a-zA-Z0-9_.-]*$ > > > > > > In my JSP > --- > > > > > > > > > > > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Validator problem with integers
How about using a regexp? mask ^\d{4}$ HTH Robert > -Ursprüngliche Nachricht- > Von: David Graham [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 18. Juni 2003 23:13 > An: [EMAIL PROTECTED] > Betreff: Re: Validator problem with integers > > > An integer validation is not the same as a "are all > characters numeric" > validation. I don't think the validator currently has a > numeric check but > patches are welcome. > > David > > > >Hi folks, > > > >Using struts-RC2, when using Validator with a dependency > >on "integer" validation, I have a problem with the validator > >assuming that any integer starting with zero "0" is > >necessarily octal. In one example, I have a form where > >people enter phone numbers. Which is split up into 3 text > >boxes. Area code, 3 digits, last 4 digits. A fairly common > >way to break it up. > > > >Here is the validation.xml entry for one such field: > > > > > property="dayPhone3" > > depends="required, integer, minlength, maxlength"> > > > > > > > > > > maxlength > > 4 > > > > > > minlength > > 4 > > > > > > > >Numbers like "0897" will cause the "... must be an integer" message. > >Obviously it is not a valid octal number, and I know that the format > >of these numbers would appear as an attempt at an octal number. > > > >How do you prevent octal interpretation but still ensure that > >the field is numeric? I'm being a tad lazy here, because I > >know I could always write my own pluggable validator, but > >I'd like to use what already exists if possible. > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > _ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > - > 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]
AW: Validator
;-) thanks... -Ursprüngliche Nachricht- Von: David Graham [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 30. Januar 2003 18:20 An: [EMAIL PROTECTED] Betreff: Re: Validator There is a validator webapp that's in the Struts distro. David >From: "Softwareentwicklung Hauschel" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >Subject: Validator >Date: Thu, 30 Jan 2003 18:16:57 +0100 > >Hey all, >does anybody knows an example for struts (date)validator >or a peace of documentation ? > >thanks > Fredy > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - 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]