Re: Opting action method back into validation

2020-12-09 Thread Lukasz Lenart
wt., 8 gru 2020 o 12:39 Paul Zepernick napisał(a): > > It is an existing project that has hundreds of action classes and is > currently configured by the struts rest plug-in to ignore the show method for > validation. I know I can update the configuration to remove the exclusion,

Re: Opting action method back into validation

2020-12-08 Thread Paul Zepernick
It is an existing project that has hundreds of action classes and is currently configured by the struts rest plug-in to ignore the show method for validation. I know I can update the configuration to remove the exclusion, but many of these actions also have a validate() implementation which

Re: Opting action method back into validation

2020-12-07 Thread Lukasz Lenart
pon., 7 gru 2020 o 15:24 Paul Zepernick napisał(a): > Is there any way to take a method that has been excluded from validation > in the configuration and turn it back on for a single action? For example, > I am using the REST plugin which excludes the show() method from the > val

Opting action method back into validation

2020-12-07 Thread Paul Zepernick
Is there any way to take a method that has been excluded from validation in the configuration and turn it back on for a single action? For example, I am using the REST plugin which excludes the show() method from the validation. 99% of the time I do not have any validation that I want to run

Re: Validation using Struts2-spring

2020-06-04 Thread M Huzaifah
Dear All, i am sorry, is my bad. the validation are running well. i am trying to do show the message error in action, but in this code the message going to the field with parameter named “parameterString1” and i change requiredFiled validation to requiredString validation in parameter

Validation using Struts2-spring

2020-06-03 Thread M Huzaifah
Hii Guys, i’am stuck with Validation in Struts2 using struts2-spring plugin. struts version : 2.5.22 spring version : 5.2.1.RELEASE my validators.xml in classpath: http://struts.apache.org/dtds/xwork-validator-definition-1.0.dtd;> my struts.xml config form constant Str

Re: bypassing request parameter validation in struts 2.5.14.1

2018-04-25 Thread Rajvinder Pal
t; > > I need to bypass one validation error , which i am getting during appscan > > run. > > > > *Invalid field value for field* XXX > > > > I have seen com.opensymphony.xwork2.interceptor. > ConversionErrorInterceptor > > in struts2-core- 2.5.14.1.jar . Bu

Re: bypassing request parameter validation in struts 2.5.14.1

2018-04-23 Thread Lukasz Lenart
2018-04-23 19:01 GMT+02:00 Rajvinder Pal <rajvinder@gmail.com>: > Hi, > > I need to bypass one validation error , which i am getting during appscan > run. > > *Invalid field value for field* XXX > > I have seen com.opensymphony.xwork2.interceptor.ConversionErro

Re: bypassing request parameter validation in struts 2.5.14.1

2018-04-23 Thread Rajvinder Pal
Any idea how can i avoid this error for a specific parameter? Regards, Raj On Mon, Apr 23, 2018 at 10:31 PM, Rajvinder Pal <rajvinder@gmail.com> wrote: > Hi, > > I need to bypass one validation error , which i am getting during appscan > run. > > *Invalid field va

bypassing request parameter validation in struts 2.5.14.1

2018-04-23 Thread Rajvinder Pal
Hi, I need to bypass one validation error , which i am getting during appscan run. *Invalid field value for field* XXX I have seen com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor in struts2-core- 2.5.14.1.jar . But it does not have any excludeParams .Please let me know what else

Re: Struts - XWork validation - error message not taking parameters

2018-03-16 Thread Lukasz Lenart
2018-03-15 14:18 GMT+01:00 Vikul Aggarwal <aggarwal.vi...@gmail.com>: > Hi > > I am using xwork validation to valid whether the value of an integer falls > in a valid range or not. > > This is how the validator is configured: > > >

Struts - XWork validation - error message not taking parameters

2018-03-15 Thread Vikul Aggarwal
Hi I am using xwork validation to valid whether the value of an integer falls in a valid range or not. This is how the validator is configured: 0 9 int validator is com.opensymphony.xwork2.valida

Re: About "Parameter Validation Filter"

2018-03-01 Thread Lukasz Lenart
2018-02-28 17:55 GMT+01:00 Emi <em...@encs.concordia.ca>: > Hello, > > There is a topic about Parameter Validation Filter (TrimTextValidationRule, > FailIfNotCanonicalizedValidationRule, FailIfContainsHTMLValidationRule) for > servlet (https://www.owasp.org/index.php/Parame

About "Parameter Validation Filter"

2018-02-28 Thread Emi
Hello, There is a topic about Parameter Validation Filter (TrimTextValidationRule, FailIfNotCanonicalizedValidationRule, FailIfContainsHTMLValidationRule) for servlet (https://www.owasp.org/index.php/Parameter_Validation_Filter). I just want to know that struts2.5.14.1 already have

Re: validation checkboxlist

2018-01-09 Thread José Antonio Delgado Trujillo
Upss unbalanced ] the para-name was autocorrection of the email editor!!! thanks Un saludo, José A. > On 9 Jan 2018, at 14:45, Brian Holzer wrote: > > Hey there, >I'm not sure if this is affecting anything, but the syntax appears to be > wrong for your

Re: validation checkboxlist

2018-01-09 Thread José Antonio Delgado Trujillo
solved!!! It was a problem with unbalanced ] Un saludo, José A.

Re: validation checkboxlist

2018-01-09 Thread Brian Holzer
Hey there, I'm not sure if this is affecting anything, but the syntax appears to be wrong for your

Re: validation checkboxlist

2018-01-08 Thread Lukasz Lenart
2018-01-08 20:04 GMT+01:00 José Antonio Delgado Trujillo : >

Re: validation checkboxlist

2018-01-08 Thread José Antonio Delgado Trujillo
Thanks a lot Lukasz, I had the same like the example except the expression of the validation. I misunderstood the param-name=“expression” - It was the expression to evaluate!!! (i was thinking about the expression to fail the validation) >>

Re: Annotation validation setter level

2018-01-08 Thread José Antonio Delgado Trujillo
dator on getter in Model Person.getEmail > > see > https://depressedprogrammer.wordpress.com/2007/05/10/struts-2-validation-using-annotations/ > > Regards > Hedju Hor > > On 2018-01-05 19:50, José Antonio Delgado Trujillo <jadt...@gmail.com> > wrote: >&g

Re: validation checkboxlist

2018-01-07 Thread Lukasz Lenart
me" attribute that must match the corresponding bean name and its property. > > The problem is about the XML validation. > > > >

Re: Annotation validation setter level

2018-01-06 Thread Hedju Hor
Hi, use @VisitorFieldValidator 1. in Action-Class annotad gettter Method of the model with @VisitorFieldValidator 2. @EmailValidator on getter in Model Person.getEmail see https://depressedprogrammer.wordpress.com/2007/05/10/struts-2-validation-using-annotations/ Regards Hedju Hor On 2018-01

Annotation validation setter level

2018-01-05 Thread José Antonio Delgado Trujillo
Annotations validations an alternative way of XML validation or the simplest way to implement the validate method. Yo have two options: At method level At setter level In the second if you don’t have the setter in the Action class because it is a property of an object, where do i put

Re: validation checkboxlist

2018-01-05 Thread José Antonio Delgado Trujillo
label Cursos and the options The problem is about the XML validation.

Re: validation checkboxlist

2018-01-04 Thread Lukasz Lenart
2018-01-04 18:53 GMT+01:00 José Antonio Delgado Trujillo : > >

Re: validation checkboxlist

2018-01-04 Thread José Antonio Delgado Trujillo
OK, Thanks for your explanation, i see clearer to use modeldriven or not. My problem is not about the populate the options of the checkboxlist but the exception rule you must select at least one. In the XML file i have

Re: validation checkboxlist

2018-01-04 Thread Lukasz Lenart
2018-01-04 13:24 GMT+01:00 José Antonio Delgado Trujillo : > In the docs about model driven > https://struts.apache.org/core-developers/model-driven.html > > > It is said that you must to implement the MovelDriven

Re: validation checkboxlist

2018-01-04 Thread José Antonio Delgado Trujillo
In the docs about model driven https://struts.apache.org/core-developers/model-driven.html It is said that you must to implement the MovelDriven interface just the method getModel() to give an Object in which Struts populate with the

Re: validation checkboxlist

2018-01-04 Thread Lukasz Lenart
2018-01-03 10:30 GMT+01:00 José Antonio Delgado Trujillo : > Do you use ModelDriven? because this looks like linked directly to an action Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

validation checkboxlist

2018-01-03 Thread José Antonio Delgado Trujillo
class Person{ private String[] levels; … } XML VALIDATION Selecciona al menos un curso

Re: xml validation with indexed properties.

2017-08-02 Thread Christoph Nenning
> I'm using struts and got issue with their xml validation framework. I have > form with some indexed properties where element is just plain String. And I > need make validation for it. I tried to use indexedListProperty for this > case, but it doesn't work and as I read in 'Stru

xml validation with indexed properties.

2017-08-01 Thread Constantine Schokk
I'm using struts and got issue with their xml validation framework. I have form with some indexed properties where element is just plain String. And I need make validation for it. I tried to use indexedListProperty for this case, but it doesn't work and as I read in 'Struts in Action' it works

Validation using annotations with two execute methods are applied always

2015-12-17 Thread JOSE L MARTINEZ-AVIAL
= { @RequiredStringValidator(fieldName="idLanguage", key = "validation-error.mandatory", messageParams={"getText('idLanguage')"}), @RequiredStringValidator(fieldName="idCompany", key = "validation-error.mandatory", messageParams={"getText('idCompa

Re: Validation using annotations with two execute methods are applied always

2015-12-17 Thread Adam Brin
ass="com.xxx.EasyEnrollmentCreateClient" method="createUserForParty"> > > > Each method has its own validations, defined by annotations at the method > level. > > @Validations(requiredStrings = { > @RequiredStringValidator(fieldN

Re: Validation using annotations with two execute methods are applied always

2015-12-17 Thread Łukasz Lenart
;createUserForParty"> > > > Each method has its own validations, defined by annotations at the method > level. > > @Validations(requiredStrings = { > @RequiredStringValidator(fieldName="idLanguage", key = > "validation-error.mandatory",

Re: form-xml-validation sample / boolean validator / over21

2015-10-22 Thread Chris
Obviously I am speaking to other users as is the case for me, do not have too much knowledge of the use of these functions. Not to the Struts conceptors.;-)Be carreful, double equal sign is good for comparaison,... Le Mercredi 21 octobre 2015 16h15, Chris a écrit :

Re: form-xml-validation sample / boolean validator / over21

2015-10-21 Thread Chris
Hi,Thank, It works with fieldexpression. I tried this :         personBean.over21         You must be 21 or older          Be carreful, double egal sign is good for comparaison, but only one egal sign is an affectation !  = = = = = = = = = = = = = = = =  = = = = = = = =  = = = I

Re: form-xml-validation sample / boolean validator / over21

2015-10-21 Thread Chris
ns to give user to make a choice when agree/disagree or 21 or older. Regards, chris Le Mercredi 21 octobre 2015 11h53, Lukasz Lenart <lukaszlen...@apache.org> a écrit : 2015-10-21 10:41 GMT+02:00 Chris <christal...@yahoo.fr>: > Struts 2.5 BETA2 / form-xml-validation  sa

Re: form-xml-validation sample / boolean validator / over21

2015-10-21 Thread Lukasz Lenart
2015-10-21 12:22 GMT+02:00 Chris : > Hi, > > I don't know what PRs means. :-) PR means Pull Request on GitHub - a change from some other user > I already tried "required" with checkbox, but it doesn't work. > > personBean.over21 > You must be 21 or

Re: form-xml-validation sample / boolean validator / over21

2015-10-21 Thread Lukasz Lenart
2015-10-21 10:41 GMT+02:00 Chris <christal...@yahoo.fr>: > Struts 2.5 BETA2 / form-xml-validation sample / boolean validator / > > Hello, > https://github.com/apache/struts-examples/blob/master/form-xml-validation/src/main/webapp/edit.jsp > The edit.jsp file contains this

form-xml-validation sample / boolean validator / over21

2015-10-21 Thread Chris
Struts 2.5 BETA2 / form-xml-validation  sample /  boolean validator /  Hello, https://github.com/apache/struts-examples/blob/master/form-xml-validation/src/main/webapp/edit.jsp The edit.jsp file  contains this line but the file EditAction-validation.xml doesn't contain a validation

RE: sj:grid --- action errors and highlight the row/row cell that failed validation

2015-10-12 Thread fea jabi
Thank you, for your response. I really appreciate it. I got it working. > From: mgai...@hotmail.com > To: user@struts.apache.org > Subject: RE: sj:grid --- action errors and highlight the row/row cell that > failed validation > Date: Fri, 9 Oct 2015 17:31:15 -0400 > >

RE: sj:grid --- action errors and highlight the row/row cell that failed validation

2015-10-09 Thread Martin Gainty
> From: zy...@hotmail.com > To: user@struts.apache.org > Subject: RE: sj:grid --- action errors and highlight the row/row cell that > failed validation > Date: Fri, 9 Oct 2015 15:50:39 -0400 > > Still looking for help on this please... > > > From:

Re: Poblem with bean-validation ( Git-Hub) and struts2-bean-validation-plugin-2.5-BETA2.jar

2015-10-09 Thread JOSE L MARTINEZ-AVIAL
You can also use Ivy for dependency management with Ant. It works just fine, and can also use Maven repositories. JL 2015-10-08 9:33 GMT-04:00 Christoph Nenning : > > Yes, I think I 'll use BETA1 with bean-validation.Regards,Chris > > I don't know how I could add

RE: sj:grid --- action errors and highlight the row/row cell that failed validation

2015-10-09 Thread fea jabi
Still looking for help on this please... > From: zy...@hotmail.com > To: user@struts.apache.org > Subject: sj:grid --- action errors and highlight the row/row cell that failed > validation > Date: Fri, 18 Sep 2015 16:17:33 -0400 > > Trying to display action errors when

Poblem with bean-validation ( Git-Hub) and struts2-bean-validation-plugin-2.5-BETA2.jar

2015-10-08 Thread Chris
Hello , I have some problem with bean-validationand struts2-bean-validation-plugin-2.5-BETA2.jarSources :   https://github.com/apache/struts-examples/tree/master/bean-validationWith new sources and Schema2.5 DTD My lib struts-examples23/11/2013  17:55    43 578 asm-3.3.jar23/11/2013

Re: Poblem with bean-validation ( Git-Hub) and struts2-bean-validation-plugin-2.5-BETA2.jar

2015-10-08 Thread Chris
PS : All is OK if I use 17/07/2015  09:56    24 583 struts2-bean-validation-plugin-2.5-BETA1.jarThis one is OK Another log oct. 08, 2015 9:24:30 AM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception au démarrage du filtre struts2 Unable to load configuration

Re: Poblem with bean-validation ( Git-Hub) and struts2-bean-validation-plugin-2.5-BETA2.jar

2015-10-08 Thread Johannes Geppert
> PS : All is OK if I use 17/07/2015 09:5624 583 > struts2-bean-validation-plugin-2.5-BETA1.jarThis one is OK > Another log > oct. 08, 2015 9:24:30 AM org.apache.catalina.core.StandardContext > filterStart > SEVERE: Exception au démarrage du filtre struts2 > U

Re: Poblem with bean-validation ( Git-Hub) and struts2-bean-validation-plugin-2.5-BETA2.jar

2015-10-08 Thread Christoph Nenning
> Yes, I think I 'll use BETA1 with bean-validation.Regards,Chris > I don't know how I could add dependencies, I don't use Maven, but ant. > > it is not in maven pom. Please try to add it manually. > > > > MG>add this xstream dependency in section > > Well, in case of ant you have to download

sj:grid --- action errors and highlight the row/row cell that failed validation

2015-09-18 Thread fea jabi
Trying to display action errors when trying to save a row in a Is there an example I can follow? Followed https://code.google.com/p/struts2-jquery/wiki/EditGrid Simple Edit and wrote validate method which is returning the action errors. 1. How should be the struts.xml

sjg:gridcolumn validation and error display

2015-09-14 Thread fea jabi
The above has to be a 8,4 decimal number basically with 3 digit max number and 4 decimal places. how to set this rule in the grid column? Also, how is the recently edited row cell value is highlighted if any validation error when saving a row.

Re: about struts-examples apache/struts-examples -> bean-validation example

2015-09-03 Thread Chris
Hello, The bean-validation example works now, after adding jboss-logging-3.1.1.GA.jar I didn't know I could use a jboss file jar with only Netbeans 7.3 and Apache Tomcat 7.0.34.So the java jar file influence the validation and the message errors directly on html page. PS

Re: about struts-examples apache/struts-examples -> bean-validation example

2015-09-03 Thread Christoph Nenning
> So the java jar file influence the > validation and the message errors directly on html page. When you don't specifiy own messages/text-keys in validation annotations the bean-validation framework uses default messages. In your case these messages should come from hibernate-validati

Re: Struts 2 manually call a custom validation in an action

2015-05-05 Thread Christoph Nenning
Please see: http://stackoverflow.com/questions/29603916/struts-2- manually-call-a-custom-validation-in-an-action ~Regards, ~~Alireza Fattahi From: Alireza Fattahi afatt...@yahoo.com.INVALID To: Struts Mailing List user@struts.apache.org Sent: Monday, 13 April 2015, 16:40 Subject

Re: is there any method that executes only when validation fails

2015-04-22 Thread Felipe Lorenz
at 11:43 AM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: Hi, In struts Action class is there any method that gets executed only when validation fails? *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ [1] http://yaragalla.blogspot.in/ [1]* -- e: davelnew

Re: is there any method that executes only when validation fails

2015-04-22 Thread Yaragalla Muralidhar
...@gmail.com wrote: Hi, In struts Action class is there any method that gets executed only when validation fails? *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ [1] http://yaragalla.blogspot.in/ [1]* -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype

Re: is there any method that executes only when validation fails

2015-04-22 Thread Yaragalla Muralidhar
, In struts Action class is there any method that gets executed only when validation fails? *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/* -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t

Re: is there any method that executes only when validation fails

2015-04-22 Thread Dave Newton
No. On Wed, Apr 22, 2015 at 11:43 AM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: Hi, In struts Action class is there any method that gets executed only when validation fails? *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ http

is there any method that executes only when validation fails

2015-04-22 Thread Yaragalla Muralidhar
Hi, In struts Action class is there any method that gets executed only when validation fails? *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

Re: Struts 2 manually call a custom validation in an action

2015-04-14 Thread Alireza Fattahi
Please see: http://stackoverflow.com/questions/29603916/struts-2-manually-call-a-custom-validation-in-an-action  ~Regards, ~~Alireza Fattahi From: Alireza Fattahi afatt...@yahoo.com.INVALID To: Struts Mailing List user@struts.apache.org Sent: Monday, 13 April 2015, 16:40 Subject: Struts

Struts 2 manually call a custom validation in an action

2015-04-13 Thread Alireza Fattahi
We have used struts 2 validation with lots of custom validation to validate our forms.     @Validations(     customValidators =     { @CustomValidator(type = AccountFormat, fieldName = accountNo) }     ) Also we can can manually validate a form by overriding the validate

RE: problem in xml validation

2015-02-17 Thread Martin Gainty
Date: Tue, 17 Feb 2015 21:07:03 +0530 Subject: Re: problem in xml validation From: yaragallamur...@gmail.com To: user@struts.apache.org No dave. It is because in the same Action class i have a validate method. So in this method if validation fails it is showing inpu jsp with the errors

problem in xml validation

2015-02-17 Thread Yaragalla Muralidhar
Hi, I have written AddTestAction.class and placed AddTestAction-validation.xml file in the same package. but the field validations are not happening. i have written int validators. Instead showing validation errors the browser is displaying page not found. if i remove validation xml file

Re: problem in xml validation

2015-02-17 Thread Dave Newton
written AddTestAction.class and placed AddTestAction-validation.xml file in the same package. but the field validations are not happening. i have written int validators. Instead showing validation errors the browser is displaying page not found. if i remove validation xml file everthing is working

Re: problem in xml validation

2015-02-17 Thread Yaragalla Muralidhar
No dave. It is because in the same Action class i have a validate method. So in this method if validation fails it is showing inpu jsp with the errors. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/* On Tue, Feb 17, 2015 at 9:03 PM, Dave

Re: validation problem

2014-12-26 Thread Yaragalla Muralidhar
structure and naming convention and try to do the same in your project. Do not add @SkipValidation annotation in your save or submit method (@SkipValidation will in fact ignore validation for it) -- Thanks Regards Sreekanth S Nair Java Developer

Re: validation problem

2014-12-26 Thread Sreekanth S. Nair
validation for it) -- Thanks Regards Sreekanth S Nair Java Developer --- eGovernments Foundation http://www.egovernments.org Ph : 9980078913 --- http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0

Re: validation problem

2014-12-26 Thread Yaragalla Muralidhar
(struts2 jars and other dep not included). You can follow the directory structure and naming convention and try to do the same in your project. Do not add @SkipValidation annotation in your save or submit method (@SkipValidation will in fact ignore validation for it) -- Thanks

Re: validation problem

2014-12-26 Thread Lukasz Lenart
2014-12-26 6:56 GMT+01:00 Yaragalla Muralidhar yaragallamur...@gmail.com: Hi Sreekanth, I think i cannot send attachements to the mailing list so i have uploaded the project to my drive and sharing the link https://drive.google.com/file/d/0B59LVhKQaKQYamZqbnc4NGtOQm8/view?usp=sharing

Re: validation problem

2014-12-26 Thread Lukasz Lenart
2014-12-26 15:19 GMT+01:00 Lukasz Lenart lukaszlen...@apache.org: 2014-12-26 6:56 GMT+01:00 Yaragalla Muralidhar yaragallamur...@gmail.com: Hi Sreekanth, I think i cannot send attachements to the mailing list so i have uploaded the project to my drive and sharing the link

Re: validation problem

2014-12-26 Thread Lukasz Lenart
validators.xml - it's only needed when you define your own validators. And I kindly suggest, please re-read the docs about how to setup validation and what each of the validators do [3]. [1] http://struts.apache.org/docs/required-validator.html [2] http://struts.apache.org/docs/stringlength

Re: validation problem

2014-12-26 Thread Yaragalla Muralidhar
want to specify min length of the String so you should use stringlength [2] instead. One more remark: you don't have to put validators.xml - it's only needed when you define your own validators. And I kindly suggest, please re-read the docs about how to setup validation and what each

Re: validation problem

2014-12-26 Thread Lukasz Lenart
2014-12-26 18:25 GMT+01:00 Yaragalla Muralidhar yaragallamur...@gmail.com: Thank you Lukasz. I have rectified all the mistakes that u listed. Validations are working. I also have done some simple mistakes. I have rectified all the mistakes. Everything is working fine now. Thanks to all of you.

validation problem

2014-12-25 Thread Yaragalla Muralidhar
Hi i am having problem in turning on validations. I have written actionClass-validation.xml file in the same package as action class. but the validations are not working. the following is my validation xml file. !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.3//EN http

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
have written actionClass-validation.xml file in the same package as action class. but the validations are not working. the following is my validation xml file. !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.3//EN http://struts.apache.org/dtds/xwork-validator-1.0.3

Re: validation problem

2014-12-25 Thread Dave Newton
, 2014 at 4:08 PM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: Hi i am having problem in turning on validations. I have written actionClass-validation.xml file in the same package as action class. but the validations are not working. the following is my validation xml file

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
as action class. but the validations are not working. the following is my validation xml file. !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.3//EN http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd; validators field name=primaryDetails.branchId

Re: validation problem

2014-12-25 Thread Dave Newton
Please read up on the themes. Nutshell: validation happens (this is trivially provable), validation message display does not. On Thu, Dec 25, 2014 at 6:41 AM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: is it because of the simple theam? In simple theam validations dont happen

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
in my case validations are not happenening . Even though validation fails it is moving to succeess rather than input jsp. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/* On Thu, Dec 25, 2014 at 6:15 PM, Dave Newton davelnew...@gmail.com

Re: validation problem

2014-12-25 Thread Dave Newton
Then you're doing something else wrong; never mind. You still won't see the messages unless you display them manually. On Thu, Dec 25, 2014 at 6:56 AM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: in my case validations are not happenening . Even though validation fails it is moving

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
if the validation works then i can think about messages *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/* On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: I have changed the theme to css_xhtml so

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
mind. You still won't see the messages unless you display them manually. On Thu, Dec 25, 2014 at 6:56 AM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: in my case validations are not happenening . Even though validation fails it is moving to succeess rather than input jsp

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
: if the validation works then i can think about messages *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/* On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: I have changed the theme to css_xhtml so

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: if the validation works then i can think about messages *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/* On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar yaragallamur

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
Muralidhar yaragallamur...@gmail.com wrote: if the validation works then i can think about messages *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/* On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote

Re: validation problem

2014-12-25 Thread Dave Newton
and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/* On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: if the validation works then i can think about messages *Thanks and Regards,* Muralidhar Yaragalla

Re: validation problem

2014-12-25 Thread Sreekanth S. Nair
As Dave said, kindly show some patience. First of validation is nothing to do with theme so just leave the theme alone. 1) Can you try renaming the action class name from SampleRegOne to SampleRegOneAction and same in struts.xml 2) If you give action alias name like below, action name

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
://yaragalla.blogspot.in/* On Thu, Dec 25, 2014 at 10:43 PM, Sreekanth S. Nair sreekanth.n...@egovernments.org wrote: As Dave said, kindly show some patience. First of validation is nothing to do with theme so just leave the theme alone. 1) Can you try renaming the action class name from

Re: validation problem

2014-12-25 Thread Sreekanth S. Nair
://yaragalla.blogspot.in/* On Thu, Dec 25, 2014 at 10:43 PM, Sreekanth S. Nair sreekanth.n...@egovernments.org wrote: As Dave said, kindly show some patience. First of validation is nothing to do with theme so just leave the theme alone. 1) Can you try renaming the action class name from

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
said, kindly show some patience. First of validation is nothing to do with theme so just leave the theme alone. 1) Can you try renaming the action class name from SampleRegOne to SampleRegOneAction and same in struts.xml 2) If you give action alias name like below

Re: validation problem

2014-12-25 Thread Sreekanth S. Nair
. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/* On Thu, Dec 25, 2014 at 10:43 PM, Sreekanth S. Nair sreekanth.n...@egovernments.org wrote: As Dave said, kindly show some patience. First of validation is nothing to do with theme so just leave the theme

which dependencies do i need for xml based validation?

2014-12-12 Thread Tamer Erdogan
Hi, Specifically do I need the commons-validator-xxx.jar for the struts2 validation? Kind regards, Tamer Erdogan Intermediate Software Development Engineer VASCO Data Security Austria GmbH 1230 Wien, Perfektastr. 45 tamer.erdo...@vasco.commailto:tamer.erdo...@vasco.com P Please consider

Re: which dependencies do i need for xml based validation?

2014-12-12 Thread Christoph Nenning
Hi, Specifically do I need the commons-validator-xxx.jar for the struts2 validation? nope, you don't need it. AFAIK validation should work out of the box, no additional dependencies necessary. It' easiest to get list of required JARs through maven. regards, Christoph This Email

Re: which dependencies do i need for xml based validation?

2014-12-12 Thread Dave Newton
Correct; validation is handled within XWork. Dave On Fri, Dec 12, 2014 at 9:39 AM, Christoph Nenning christoph.nenn...@lex-com.net wrote: Hi, Specifically do I need the commons-validator-xxx.jar for the struts2 validation? nope, you don't need it. AFAIK validation should work out

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: Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Paul Benedict
at 10:46 AM, Miguel Almeida mig...@almeida.at wrote: 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

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

2014-08-25 Thread Miguel Almeida
] http://tools.ietf.org/html/rfc6531 Cheers, Paul On Mon, Aug 25, 2014 at 10:46 AM, Miguel Almeida mig...@almeida.at wrote: 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

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

2014-08-25 Thread Dave Newton
are generally good enough and that's about it. Regexes isn't the right solution for completely-spec-compliant email address validation. Note that other email validators can be plugged in fairly easily. Dave On Mon, Aug 25, 2014 at 12:11 PM, Miguel Almeida mig...@almeida.at wrote: I have added

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

2014-08-25 Thread Miguel Almeida
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 generally good enough and that's about it. Regexes isn't the right solution for completely-spec-compliant email address validation

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

  1   2   3   4   5   6   7   8   9   10   >