Re: Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Lukasz Lenart
2014-08-25 18:27 GMT+02:00 Miguel Almeida : > Note: I pasted the wrong JIRA issue. The correct one is: > https://issues.apache.org/jira/browse/WW-4395 But you can simple override default pattern with regex or regexExpression param (don't use both) *. http://struts.apache.org/release/2.3.x

Re: Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Miguel Almeida
Note: I pasted the wrong JIRA issue. The correct one is: https://issues.apache.org/jira/browse/WW-4395 On Mon, 2014-08-25 at 12:22 -0400, Dave Newton wrote: > http://tools.ietf.org/html/rfc2822 > > IIRC http://tools.ietf.org/html/rfc2047 discusses non-0-127 chars in > headers, I'm not sure if th

Re: Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Paul Benedict
It's impossible to generalize if the developer wants ASCII characters or Unicode characters in email validation. A switch is obviously mandated. However, for Unicode characters, this can be easily solved by using the \w switch (word characters), I believe, as a replacement for the typical [A-Za-z0-

Re: Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Dave Newton
http://tools.ietf.org/html/rfc2822 IIRC http://tools.ietf.org/html/rfc2047 discusses non-0-127 chars in headers, I'm not sure if that extends to addresses. The bottom line is that any realistic email regex will miss a lot of edge cases, and some fairly normal use cases as well. Email regexes are

Re: Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Miguel Almeida
I have added it to the JIRA - https://issues.apache.org/jira/browse/WW-4389 I can't seem to find the actual standard though (i.e., the one in place that essentially doesn't allow these characters). For documentation purposes, does anyone know what effective standard disallows these characters? C

Re: Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Paul Benedict
I looked up the RFC. The document lists itself as a "proposed standard" [1] so it's not really available yet for general use (but correct me if wrong). I propose that an enhancement should be made in JIRA to handle this. [1] http://tools.ietf.org/html/rfc6531 Cheers, Paul On Mon, Aug 25, 2014

Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Miguel Almeida
This is the regex for email validation in Struts: \\b^['_a-z0-9-\\+]+(\\.['_a-z0-9-\\+]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)\* \.([a-z]{2}|aero|arpa|asia|biz|com|coop|edu|gov|info|int|jobs|mil|mobi| museum|name|nato|net|org|pro|tel|travel|xxx)$\\b I had a report of this failing for a user with an umlaut

Re: Struts Validation

2013-12-13 Thread Ken McWilliams
Have the action extend ActionSupport and have the class implement its own: public validate(void). Look at the code of ActionSupport (or JavaDoc) for how to set error messages, if an error is set, after validate() executes, Struts2 will assume an error has occurred and the action will return "input

Fwd: Struts Validation

2013-12-13 Thread Vibhuti Pithwa
Hello, I had successfully written a conditional visitor validator for a List in a validation.xml for a list of Object say Employee. Then I wrote a validation.xml of the type Employee-validation.xml where i wrote the validation to be done for say First Name , Last Name. Now the validations in

Struts Validation

2013-12-13 Thread Vibhuti Pithwa
Hello, I had successfully written a conditional visitor validator for a List in a validation.xml for a list of Object say Employee. Then I wrote a validation.xml of the type Employee-validation.xml where i wrote the validation to be done for sa

How to implement alternate error messages in the Struts validation framework. (Struts 2.0.1.4)

2012-02-28 Thread joann luo
Hello, I am currently using the Struts2 validation framework for my project. I have Struts 2.0.14. I have been trying to find a way to display alternate error message through validator framework. I tried two things. 1. I added a bundle attribute in the following code in the web.xml but

Re: Struts Validation with restful URL

2010-11-08 Thread Edward Seager
Had a look in the soruce for 2.21 AnnotationActionValidatorManager line 226 replaces any / in the action alias with -. So in the example below I would have to give the file the succinct name CreatePortalUserAction-CreatePortalUser-persistCustomer-validation.xml :-) On Thu, Nov 4, 2010 at 12:00 PM,

Struts Validation with restful URL

2010-11-04 Thread Edward Seager
Hi all, I've just started using Struts 2.21 and I've wired up an action with RESTfulish way of calling different methods: /WEB-INF/jsp/internal/createPortalUserHome.jsp /WEB-INF/jsp/internal/createUser.jsp /WEB-INF/jsp/internal/createCustomer.jsp so I can p

Struts Validation Framework - Focus and Select form field

2010-05-13 Thread somag
Hi, On one of my project we are using struts validation framework...i am using client side validation...requirement is when form field value is invalid its focusing into specific field...at same time i have to select existing value invalid text...like focus() and select() Thanks, -Soma

Re: Struts validation (validwhen)

2009-10-05 Thread Andre Rodrigues
Hi, validator-rules contents: Thanks again, André From: Martin Gainty To: acastanheira2...@yahoo.com.br Sent: Monday, October 5, 2009 3:19:25 PM Subject: RE: Struts validation (validwhen) please post contents of validator-rules.xml Martin Gainty

Struts validation (validwhen)

2009-10-05 Thread acastanheira2001
} -- View this message in context: http://www.nabble.com/Struts-validation-%28validwhen%29-tp25754823p25754823.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Client-side and server-side struts validation

2009-06-24 Thread Greg Allen
Is there a way to make the client-side struts validation behave like the server-side validation? Specifically I would like the client-side validation to put error messages in the or tags rather than using alert boxes. Is this possible? I haven't been able to find a way to do i

Struts Validation - Error loading JavaScript Files

2009-06-16 Thread tarun trehan
fails login as it should. Now after that even if i login with the correct login , the javascript file is not loaded. i am able to display other jsp elements. but the javascript files are not loaded. please guide me regarding the same. -- View this message in context: http://www.nabble.com/S

Struts validation with multiple struts-config.xml file (struts 1.2.6)

2009-06-15 Thread Ashish Kulkarni
HiI am having issues with struts validation when i have more then one struts-config.xml file defined in web.xml Struts performs no validation for the rules i have in validation.xml file, which is part of struts-config.xml, but if i remove struts-config-admin.xml from web.xml then it performs the

Re: To use Struts Validation or not?

2009-02-18 Thread Wes Wannemacher
On Thursday 19 February 2009 01:02:16 Rajeshwari Godbole wrote: > Hi all, > > Our team here has developed a portal using Struts2. Most of the developers > have used javascript to validate the forms. I know using the Struts > validation framework is a better way to do this but I

To use Struts Validation or not?

2009-02-18 Thread Rajeshwari Godbole
Hi all, Our team here has developed a portal using Struts2. Most of the developers have used javascript to validate the forms. I know using the Struts validation framework is a better way to do this but I think this was avoided in the project due to the (perceived) cumbersome setup (xml file

Struts Validation framework

2008-08-10 Thread Pappula Jagan
frame work. -- View this message in context: http://www.nabble.com/Struts-Validation-framework-tp18920960p18920960.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [struts] validation and action names with slashes

2008-06-20 Thread Roberto Nunnari
Hi Dale. Thank you for your answer. See my comments below. -- Robi Dale Newfield wrote: Roberto Nunnari wrote: ..but in order to add declarative validation, that would require a file named: CategoryAction/create-validation.xml Oops.. little typo! That should read: CategoryAction-Category/c

Re: [struts] validation and action names with slashes

2008-06-19 Thread Dale Newfield
Roberto Nunnari wrote: ..but in order to add declarative validation, that would require a file named: CategoryAction/create-validation.xml but '/' is not a character allowed in filenames. Did you actually try putting the validation file at CategoryAction/create-validation.xml (i.e.: in a subd

Re: struts- validation messages

2008-03-29 Thread Nuwan Chandrasoma
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html Thanks, Nuwan Sonu S wrote: Hi, I am using struts in my application. to validate users entry in jsp i have my validation method. and i am calling that method in action class. code is below:(I am not using struts' validatio

struts- validation messages

2008-03-29 Thread Sonu S
Hi, I am using struts in my application. to validate users entry in jsp i have my validation method. and i am calling that method in action class. code is below:(I am not using struts' validations ) // in action class, calling validate method ActionErrors errors = myForm.validate(mapping,request

Re: Struts validation problem

2008-03-01 Thread Anet
Hi. Thank you very much Dave. my problem solved. Anet. Dave Newton <[EMAIL PROTECTED]> wrote: --- Anet wrote: > whats your mean about rendering tag property? It ate part of my text; I was asking if it renders a tag. If not, you'd have to put it inside one--I just don't remember much

Re: Struts validation problem

2008-02-27 Thread Dave Newton
--- Anet <[EMAIL PROTECTED]> wrote: > whats your mean about rendering tag property? It ate part of my text; I was asking if it renders a tag. If not, you'd have to put it inside one--I just don't remember much about S1 any more. > everything is ok. just validation doesn't work.

Re: Struts validation problem

2008-02-27 Thread Anet
Hi Dave; whats your mean about rendering tag property? everything is ok. just validation doesn't work. I use struts 1.1 . Dave Newton <[EMAIL PROTECTED]> wrote: --- Anet wrote: > I have an strange problem with struts validation. Everything is ok. ... > but java

Re: Struts validation problem

2008-02-27 Thread Dave Newton
--- Anet <[EMAIL PROTECTED]> wrote: > I have an strange problem with struts validation. Everything is ok. ... > but java script created by struts are shown on top of my page, where I put > Is it rendering the tag properly? Which version of S1 are y

Struts validation problem

2008-02-27 Thread Anet
Hi I have an strange problem with struts validation. Everything is ok. I checked it several times. but java script created by struts are shown on top of my page, where I put any idea? Thanks. - Looking for last minute shopping deals? Find

Re: Can I use one action for displaying and submission (with struts validation)

2008-01-26 Thread Laurie Harper
Paul Benedict wrote: You can use this pattern: * Turn automatic validation off. * If your action was executed as a GET, branch to viewing logic. * If your action was executed as a POST, branch to validation logic and submission logic. Another approach is to retain declarative validation and

RE: Can I use one action for displaying and submission (with struts validation)

2008-01-25 Thread Dave Newton
rom: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Paul Benedict > Sent: Friday, January 25, 2008 12:15 PM > To: Struts Users Mailing List > Subject: Re: Can I use one action for displaying and submission (with > struts validation) > > You can use this pattern: >

RE: Can I use one action for displaying and submission (with struts validation)

2008-01-25 Thread Zhang, Larry (L.)
Benedict Sent: Friday, January 25, 2008 12:15 PM To: Struts Users Mailing List Subject: Re: Can I use one action for displaying and submission (with struts validation) You can use this pattern: * Turn automatic validation off. * If your action was executed as a GET, branch to viewing logic. * If your

Re: Can I use one action for displaying and submission (with struts validation)

2008-01-25 Thread Paul Benedict
You can use this pattern: * Turn automatic validation off. * If your action was executed as a GET, branch to viewing logic. * If your action was executed as a POST, branch to validation logic and submission logic. Paul

Can I use one action for displaying and submission (with struts validation)

2008-01-25 Thread Zhang, Larry (L.)
I was noticing an issue if I use one action for both displaying and submission purposes: Say MyAction.java is for displaying page and also for submission. If on the page there is text field needing the struts validator validation, then if failing validation, I forward to MyAction.java and comes

RE: Struts Validation issue

2007-12-10 Thread Vaibhav Khare
ing the prepare > method > > We ended up with option 1. I'd be interested to find out if there is > better solution too. > > -Original Message- > From: Vaibhav Khare [mailto:[EMAIL PROTECTED] > Sent: Monday, December 10, 2007 10:37 AM > To: user@struts.apache.o

RE: Struts Validation issue

2007-12-10 Thread Jiang, Jane (NIH/NCI) [C]
EMAIL PROTECTED] Sent: Monday, December 10, 2007 10:37 AM To: user@struts.apache.org Subject: Struts Validation issue Hi, I am using Struts validation framework in my project. My form becomes null whenever I try to do some validation. The validation works fine but the next time it comes on the UI, the

Re: Struts Validation issue

2007-12-10 Thread Vaibhav Khare
I am using tile page as an input. Thx Paul Benedict-2 wrote: > > Can you paste in the set of action configuration mappings that you're > using? > > On Dec 10, 2007 9:37 AM, Vaibhav Khare <[EMAIL PROTECTED]> wrote: > >> >> Hi, >> >> I a

Re: Struts Validation issue

2007-12-10 Thread Paul Benedict
Can you paste in the set of action configuration mappings that you're using? On Dec 10, 2007 9:37 AM, Vaibhav Khare <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using Struts validation framework in my project. My form becomes null > whenever I try to do some validation.

Struts Validation issue

2007-12-10 Thread Vaibhav Khare
Hi, I am using Struts validation framework in my project. My form becomes null whenever I try to do some validation. The validation works fine but the next time it comes on the UI, the list becomes null. Any help will be appreciated. example: When I do the validation, this tag fails as the

Re: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread Cesar Arevalo
u. -Cesar PS Found those pages while googling for "struts validatior dtd" - Original Message From: rapsy <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Thursday, October 4, 2007 12:02:11 PM Subject: Re: Struts validation error on Jdeveloper 10.1.3.3 I don't

Re: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread rapsy
> > just a quick thought, shouldn't the arguments start at index 0? this > meaning that you should have > > > > > ?? > > -Cesar > > > - Original Message > From: rapsy <[EMAIL PROTECTED]> > To: user@stru

Re: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread Cesar Arevalo
Error) Attribute 'name' used but not declared. Can someone tell me why I am getting these errors? Thank you! -- View this message in context: http://www.nabble.com/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13045841 S

Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread rapsy
Can someone tell me why I am getting these errors? Thank you! -- View this message in context: http://www.nabble.com/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13045841 Sent from the Struts - User mailing list archive at Nabble.com. -

Re: [OT] Re: Calling Struts Validation framework explicitly from WebServices

2007-08-13 Thread Laurie Harper
why the insistence on using the Struts validation code, rather than Commons Validator? The Struts code is just a thin wrapper/adapter around Commons Validator. & want to know the class which explicitly calls other classes responsible for validation after the form is submitted You seem to

RE: [OT] Re: Calling Struts Validation framework explicitly from WebServices

2007-08-13 Thread Prashant Baviskar
inal Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, August 13, 2007 5:12 PM To: Struts Users Mailing List Subject: [OT] Re: Calling Struts Validation framework explicitly from WebServices Look at Apache commons-validator... asking the question in many different ways will

[OT] Re: Calling Struts Validation framework explicitly from WebServices

2007-08-13 Thread Dave Newton
Look at Apache commons-validator... asking the question in many different ways will not generate significantly different answers. http://commons.apache.org/validator/ d. --- Prashant Baviskar <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have a struts application. > > I am separating business

Calling Struts Validation framework explicitly from WebServices

2007-08-13 Thread Prashant Baviskar
Hi, I have a struts application. I am separating business logic from presentation logic & going to expose this business logic as web-service. I want to explicitly call validation framework of struts from web service. Please Help --Thanks & Regards Prashant Baviskar http://www.pa

RE: Use of Struts Validation outside struts framework

2007-08-13 Thread Prashant Baviskar
Thanks Paulus, I have to populate an ActionForms object first which happens in struts after submitting form. & then struts validation does it's work before calling the execute method. I want to do the same explicitely. Can you tell me the class which reads struts-config.xml, in whi

Re: Use of Struts Validation outside struts framework

2007-08-13 Thread Jasper Floor
> On 8/13/07, Prashant Baviskar <[EMAIL PROTECTED]> wrote: > > > > struts application. > > > > I want to make use of above files (validation.xml, validator-rules.xml, > > other validation files) > > > > for validating same fields using Struts Val

Re: Use of Struts Validation outside struts framework

2007-08-13 Thread Paul Benedict
ion. > > I have other desktop application which has same fields like forms in the > struts application. > > I want to make use of above files (validation.xml, validator-rules.xml, > other validation files) > > for validating same fields using Struts Validation framework > >

Use of Struts Validation outside struts framework

2007-08-13 Thread Prashant Baviskar
l, other validation files) for validating same fields using Struts Validation framework How can I use these files for validation. Please help --Thanks & Regards Prashant Baviskar http://www.patni.com World-Wide Partnerships. World-Cla

Re: struts validation problem

2007-07-23 Thread Paul Benedict
Nosinov Mirbek wrote: Hello Everybody. Could you help me with Struts validation. this is block from validation.xml I want to show in error message in jsp value of property email, that user has entered. like if user entered [EMAIL PROTECTED] i want to show error message [EMAIL

struts validation problem

2007-07-23 Thread Nosinov Mirbek
Hello Everybody. Could you help me with Struts validation. this is block from validation.xml I want to show in error message in jsp value of property email, that user has entered. like if user entered [EMAIL PROTECTED] i want to show error message [EMAIL PROTECTED] is invalid

AW: AW: struts validation

2007-07-06 Thread Anja Fischer, IBE
Juli 2007 11:17 An: Struts Users Mailing List Betreff: Re: AW: struts validation are you sure that you have this files in WEB-INF? are you using any IDE like eclipse or netbeans? El vie, 06-07-2007 a las 11:13 +0200, Anja Fischer, IBE escribió: > Hi, > > that's the same I have

Re: AW: struts validation

2007-07-06 Thread Jorge Martín Cuervo
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" /> > > > Anja > > > > > -Ursprüngliche Nachricht- > Von: Jorge Martín Cuervo [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 6. Juli 2007 11:02 > An: St

AW: struts validation

2007-07-06 Thread Anja Fischer, IBE
truts validation i've in my struts-config.xml: can you send us the struts-config.xml related portion? El vie, 06-07-2007 a las 10:31 +0200, Anja Fischer, IBE escribió: > Hi all, > > I use the struts validation plugin. Now tomcat runs into a > javax.servlet.Unavailable

Re: struts validation

2007-07-06 Thread Jorge Martín Cuervo
i've in my struts-config.xml: can you send us the struts-config.xml related portion? El vie, 06-07-2007 a las 10:31 +0200, Anja Fischer, IBE escribió: > Hi all, > > I use the struts validation plugin. Now tomcat runs into a > javax.servlet.UnavailableExcepti

struts validation

2007-07-06 Thread Anja Fischer, IBE
Hi all, I use the struts validation plugin. Now tomcat runs into a javax.servlet.UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml' Like it is described in the struts user guide I replaced the dtd in validation.xml and

RE: Struts Validation Problems

2007-04-24 Thread Raghupathy, Gurumoorthy
lto:[EMAIL PROTECTED] Sent: 23 April 2007 13:17 To: user@struts.apache.org Subject: Struts Validation Problems Hi, I have some problems with using the following regular expression in the validation f

Struts Validation Problems

2007-04-23 Thread Ferruh Zamangör
Hi, I have some problems with using the following regular expression in the validation framework from Struts. mask ^\w{2}-\w{6}(-\w{2

Re: Two Struts validation problems

2007-03-04 Thread Oren Livne
Oren Livne wrote: P.S. An important fact I forgot to mention: my VO is persisted to a database using Hibernate. Hibernate wraps this object with its own type. Is it possible that the type conversion (String -> int) is not working properly because Hibernate's wrapper gets in the way? I did a si

Re: Two Struts validation problems

2007-03-03 Thread Martin Gainty
l" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, March 03, 2007 6:50 PM Subject: Re: Two Struts validation problems > Chris is right, the zero occurs in the java.lang.Integer(String) > constructor when it is passed a non-numeric string value. You

Re: Two Struts validation problems

2007-03-03 Thread Oren Livne
P.S. An important fact I forgot to mention: my VO is persisted to a database using Hibernate. Hibernate wraps this object with its own type. Is it possible that the type conversion (String -> int) is not working properly because Hibernate's wrapper gets in the way? I did a simple test of copying

Re: Two Struts validation problems

2007-03-03 Thread Oren Livne
Dear Laurie & Christopher: Great! Thanks. I'm using Strings now in my form. But as I wrote to Ed, suppose I validated the form and would like to copy all properties to a VO (value object) / DTO with one call (e.g. copyProperties()). How do I get it to automatically convert my form String prope

Re: Two Struts validation problems

2007-03-03 Thread Laurie Harper
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oren, Oren Livne wrote: Dear Chris: Yes, other validations are working. For instance, I also have an "intRange" validation on the same integer field. If I type a letter for the integer field, it sets it to 0, displays it

Re: Two Struts validation problems

2007-03-03 Thread Oren Livne
Dear Ed: Thanks so much for your response (all other that replied -- thanks so much as well!). For now, I would like to stick to the first solution: ActionForm with String properties. I already have VOs and don't mind copying over from the form to the VO and back. My last question on this issu

Re: Two Struts validation problems

2007-03-03 Thread Ed Griebel
Chris is right, the zero occurs in the java.lang.Integer(String) constructor when it is passed a non-numeric string value. You would see this happen in your ActionForm and action class if you weren't using the validator. The same thing happens with a non-numeric in a java.lang.Double(String) const

Re: Two Struts validation problems

2007-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oren, Oren Livne wrote: > Dear Chris: > Yes, other validations are working. For instance, I also have an > "intRange" validation on the same integer field. If I type a letter for > the integer field, it sets it to 0, displays it as 0, and says it's >

Re: Two Struts validation problems

2007-03-03 Thread Oren Livne
Dear Chris: Yes, other validations are working. For instance, I also have an "intRange" validation on the same integer field. If I type a letter for the integer field, it sets it to 0, displays it as 0, and says it's outside the permissible range (which happens to be 1-4). No errors on startup

Re: Two Struts validation problems

2007-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oren, Oren Livne wrote: > 1) I have a form property that is an integer. When I set its validation > rule to "integer", it has no effect. [snip] > 2) A "validwhen" test condition seems to be ignored: Are other validations working? It's possible that

Two Struts validation problems

2007-03-03 Thread Oren Livne
Dear All: I have two problems with Validator. I'm using Struts 1.3.5, Tomcat 6.0.9 and Java 1.6: 1) I have a form property that is an integer. When I set its validation rule to "integer", it has no effect. - The form field is populated with a zero value even if a letter is typed in the form i

Re: Struts validation (still) (again!) (ARRGH!)

2007-01-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter L. Berghold wrote: > Oh, and make sure that your file gets put into WEB-INF/classes (or some subdirectory thereof), or by some other means into the classpath. I don't think it'll work if it's just in WEB-INF. - -chris -BEGIN PGP S

Re: Struts validation (still) (again!) (ARRGH!)

2007-01-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter L. Berghold wrote: > Hmm... I don't usually put stuff like this in "packages" but you might want to use slashes instead of dots. Give it a try and see... > When the form is submitted completely blank (which should generate an > error..

Struts validation (still) (again!) (ARRGH!)

2007-01-05 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 OK, I've been hacking around some more on this validation stuff and while some of the suggestions I've been given have been a HUGE help I'm still stuck. Re-distilling the problem a bit I think I may have stumbled on something but I'm not quite sure w

Re: [Fwd: Having problems with Struts validation framework]

2006-11-26 Thread Laurie Harper
n. Currently as I know, the action gets called based on the setting. Any help would be much appreciated, regards, robin. ---- Subject: Having problems with Struts validation framework From: robin bajaj <[EMAIL PR

Re: [Fwd: Having problems with Struts validation framework]

2006-11-24 Thread Christopher Schultz
gt; Currently as I know, the action gets called based on the > setting. > > > Any help would be much appreciated, > regards, > robin. > > > > > > > > > > > > ---

Re: how to selectively call struts validation from a form

2006-11-23 Thread Paul Benedict
Robin, I only have one issue with this approach. I dont know how to make use of the built-in validation rules provided in validation-rules.xml in my .java code. You are not trying to replace the validator. You are still going to use it, so code in your normal rules in the XML file. All you'r

Re: how to selectively call struts validation from a form

2006-11-23 Thread robin bajaj
make use of the built-in validation rules provided in validation-rules.xml in my .java code. I can check for simple things like not-null, not-empty etc. but checking something like "email" field will be easier if I could leverage the rules provided by Struts validation framework in vali

Re: how to selectively call struts validation from a form

2006-11-23 Thread Paul Benedict
WongTseng wrote: You say the validator is based on whatever key I supply.Is that true, as far as I know the validation is linked with the form by the form's name. ValidatorForm and ValidatorActionForm are coded to select the keys for you. The former picks the form name, the second picks the acti

Re: how to selectively call struts validation from a form

2006-11-23 Thread Wendy Smoak
On 11/23/06, robinbajaj <[EMAIL PROTECTED]> wrote: Hi Folks, My previous post's subject was not clear. So here's a re-phrase of the problem. My loyaltyPAge.jsp has two buttons - Exit and continue. I want the validation to occur only when "Continue" is clicked upon. But the Rick has a

Re: how to selectively call struts validation from a form

2006-11-23 Thread WongTseng
hi,Paul: You say the validator is based on whatever key I supply.Is that true, as far as I know the validation is linked with the form by the form's name. 2006/11/24, Paul Benedict <[EMAIL PROTECTED]>: Robin, The validator is based on whatever key you supply. You can choose the key. I like t

Re: how to selectively call struts validation from a form

2006-11-23 Thread Paul Benedict
the validation to occur only when "Continue" is clicked upon. But the having "validate=true" - that's why the Struts validation framework tries to validate the input fields regardless of which button is clicked. Is there some facility provided by the Struts framework to SKI

how to selectively call struts validation from a form

2006-11-23 Thread robinbajaj
l etc.) in this case, Thanks for your help, regards, robin. -- View this message in context: http://www.nabble.com/how-to-selectively-call-struts-validation-from-a-form-tf2695232.html#a7516473 Sent from the Struts - User mailing list a

[Fwd: Having problems with Struts validation framework]

2006-11-23 Thread robin bajaj
Hello folks, I found a little issue with the action that's being called. Please dis-regard my previous mail reporting this issue. Its resolved now. However, I have another related issue. My loyaltyPAge.jsp has two buttons - Exit and continue. I want the validation to occur only when "Continue" i

Having problems with Struts validation framework

2006-11-23 Thread robin bajaj
Hi Folks, --- problem --- My validation is working but the control doesnt go back to the input page. I want the input page to render again showing the errors. --- Details -- I am using Struts 1.1.x for my webApp. My validation is working fine. (validator-rules.xml and validation-renewal.xml s

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread Niall Pemberton
You can also do the same kind of thing that Chris suggests with Struts tags: For your global message, uses the "messagesPresent" tag to detect if there are errors and then output the appropriate message: For your field specific messages, you can use either the or tags to position m

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, > When the user submits the form with more than one fields left blank (or > with incorrect values), I want to show a > general (GLOBAL) message on top of the form saying > > "Following shown mandatory fields were provided with incorrect values

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread robin bajaj
Hi Dave, Thanks for the reply. My Desired Scenario: a) When the user submits the form with more than one fields left blank (or with incorrect values), I want to show a general (GLOBAL) message on top of the form saying "Following shown mandatory fields were provided with incorrect values" b

RE: how to generate generic errors using Struts validation framework

2006-11-01 Thread Dave Newton
From: robin bajaj [mailto:[EMAIL PROTECTED] > I need to know how can I generate GLOBAL validation errors using the > validation.xml file. I know this can be done easily in ActionForm's > java code like: Like what kind of "global" validation errors? Dave --

how to generate generic errors using Struts validation framework

2006-10-31 Thread robin bajaj
Hi Everyone, I am using Struts 1.2 validation framework where I am using the following elements to mention validation rules for specific action properties. But this only allows me to generate validation errors for specific ActionForm property names. I need to

Re: Struts Validation DTD

2006-10-23 Thread Niall Pemberton
On 10/23/06, Ed Griebel <[EMAIL PROTECTED]> wrote: (Redirecting response to user list where this type of question belongs...) You can swap in the new validator version without any changes to the rest of your application; the commons-validator team run a regression test at the binary level. This

Re: Struts Validation DTD

2006-10-23 Thread Ed Griebel
(Redirecting response to user list where this type of question belongs...) You can swap in the new validator version without any changes to the rest of your application; the commons-validator team run a regression test at the binary level. This page has a complete list of what jars need to be upd

Re: (Struts validation) Different message resource keys rather than placeholders

2006-07-26 Thread Scott Van Wart
Givler, Eric wrote: But can't you just define a message specific to the field and validator for each definition in the validations.xml file? min0 max50 Yes, yes I can... good old struts documentation. :) I fi

RE: (Struts validation) Different message resource keys rather than placeholders

2006-07-26 Thread Givler, Eric
Sent: Tuesday, July 25, 2006 11:10 PM To: Struts Users Mailing List Subject: (Struts validation) Different message resource keys rather than placeholders The validator, by default uses stuff like this: errors.required={0} is required. I'd like to be able to use entirely different message keys

(Struts validation) Different message resource keys rather than placeholders

2006-07-25 Thread Scott Van Wart
The validator, by default uses stuff like this: errors.required={0} is required. I'd like to be able to use entirely different message keys depending on the field, rather than always using errors.required. The solution for the "required" validator was to simply use a passthrough key like this

RE: Struts validation question

2006-07-04 Thread hermod.opstvedt
4, 2006 9:38 AM To: user@struts.apache.org Subject: Struts validation question I want to use struts validation,when field is invalidate,my program can raise information,like follows: Username is required. Password is required. Phone Number is required. I know it's server-side validation,I wan

Struts validation question

2006-07-04 Thread red phoenix
I want to use struts validation,when field is invalidate,my program can raise information,like follows: Username is required. Password is required. Phone Number is required. I know it's server-side validation,I want to use client-side validation,so I put some code in my JSP files: When

Struts validation validates wrong attributes

2006-06-22 Thread Sherwood, Reg
Hi I have a single form shared among a few jsp pages. Each jsp references the following after their form tag: Jsp0.jsp Jsp1.jsp The corresponding validation.xml is: mask ${workorder

  1   2   >