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 constan

Re: bypassing request parameter validation in struts 2.5.14.1

2018-04-25 Thread Rajvinder Pal
Thanks, I changed the data type of accessCode from int to String and it is working fine. regards, Raj On Tue, Apr 24, 2018 at 10:29 AM, Lukasz Lenart wrote: > 2018-04-23 19:01 GMT+02:00 Rajvinder Pal : > > Hi, > > > > I need to bypass one validation error , which i am g

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 : > 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-

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 wrote: > Hi, > > I need to bypass one validation error , which i am getting during appscan > run. > > *Invalid field value for field* X

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 : > 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 > >

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 : > Hello, > > There is a topic about Parameter Validation Filter (TrimTextValidationRule, > FailIfNotCanonicalizedValidationRule, FailIfContainsHTMLValidationRule) for > servlet (https://www.owasp.org/index.php/Parameter_Validation_Filter). > >

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 these

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 compared to the example from the li

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 From the link: vs José : [!CDATA[personBean.levels.length > 0]]>> in José's, the < and > don't match properly. There appears to be a missing < before the [!CDATA... a

Re: validation checkboxlist

2018-01-08 Thread Lukasz Lenart
2018-01-08 20:04 GMT+01:00 José Antonio Delgado Trujillo : > [!CDATA[personBean.levels.length > 0]]>> > > Unfortunately it still doesn’t work and i don’t any idea why the form display > always the error message. Can you share rendered html? What's a name of the radio buttons? Regards -- Łukasz

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) >> [!CDATA[#personBean.levels.length==0]]>&

Re: Annotation validation setter level

2018-01-08 Thread José Antonio Delgado Trujillo
el 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 > wrote: >> Annotations validations an alternative way of XML

Re: validation checkboxlist

2018-01-07 Thread Lukasz Lenart
atch the corresponding bean name and its property. > > The problem is about the XML validation. > > > > [!CDATA[#personBean.levels.length==0]]>> > You must select at least one option > > Here you have an example https://github.

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 the

Re: validation checkboxlist

2018-01-05 Thread José Antonio Delgado Trujillo
l Cursos and the options The problem is about the XML validation. [!CDATA[#personBean.levels.length==0]]>> You must select at least one option It is always trigger Un saludo, José A.

Re: validation checkboxlist

2018-01-04 Thread Lukasz Lenart
2018-01-04 18:53 GMT+01:00 José Antonio Delgado Trujillo : > > [!CDATA[#personBean.levels.length==0]]>> "personBean.levels.isEmpty" ? https://github.com/jkuhnert/ognl/blob/master/docs/LanguageGuide.md#pseudo-properties-for-collections > In Person class > private String[] levels > priv

Re: validation checkboxlist

2018-01-04 Thread José Antonio Delgado Trujillo
You must select at least one option With that configuration i always obtain an error validation (showing the message in the checkboxñixt field) In Person class private String[] levels private String[] levelsAvalaible={“1ESO”, “2ESO”, 3ESO”, “4ESO” } with setters and getters In the re

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 interface just the >

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/ - To unsubscribe, e-mai

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

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 A

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

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

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

2015-12-17 Thread Adam Brin
entCreateClient" method="createUserForParty"> > > > Each method has its own validations, defined by annotations at the method > level. > > @Validations(requiredStrings = { > @RequiredStringValidator(fieldName="idLanguage", key = > &q

Validation using annotations with two execute methods are applied always

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

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

2015-10-21 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 : Hi,Thank, It wor

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 t

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 older > > > ...( chec

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

2015-10-21 Thread Chris
adio buttons to give user to make a choice when agree/disagree or 21 or older. Regards, chris Le Mercredi 21 octobre 2015 11h53, Lukasz Lenart a écrit : 2015-10-21 10:41 GMT+02:00 Chris : > Struts 2.5 BETA2 / form-xml-validation  sample /  boolean validator / > > Hello, >

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

2015-10-21 Thread Lukasz Lenart
2015-10-21 10:41 GMT+02:00 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 t

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 for

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: 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 tr

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 dependencies, I don't use Maven,

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 x

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

2015-10-08 Thread Johannes Geppert
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 > Unable to load configur

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

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

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 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-val

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 : wit

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 > To: Struts Mailing List > Sent: Monday, 13 April 2015, 16:40 > Subject: Struts 2 m

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

2015-04-22 Thread Yaragalla Muralidhar
gt;* > > > > On Wed, Apr 22, 2015 at 9:15 > PM, Dave Newton wrote: > > > >> 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

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

2015-04-22 Thread Felipe Lorenz
;> 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

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

2015-04-22 Thread Yaragalla Muralidhar
ote: > > > 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://y

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. > > *ht

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 To: Struts Mailing List Sent: Monday, 13 April 2015, 16:40 Subject: Struts 2 manually call a custom validation in an

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 fo

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 showin

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,

Re: problem in xml validation

2015-02-17 Thread Dave Newton
t; 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 > remov

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: validation problem

2014-12-26 Thread Lukasz Lenart
2014-12-26 18:25 GMT+01:00 Yaragalla Muralidhar : > 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. Great to hear that!

Re: validation problem

2014-12-26 Thread Yaragalla Muralidhar
quot;RequiredFieldValidator checks if the specified field is not null." > where empty string != null > > I think you 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 need

Re: validation problem

2014-12-26 Thread Lukasz Lenart
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-validator.h

Re: validation problem

2014-12-26 Thread Lukasz Lenart
2014-12-26 15:19 GMT+01:00 Lukasz Lenart : > 2014-12-26 6:56 GMT+01:00 Yaragalla Muralidhar : >> 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/0B59LVhKQaKQYamZqbn

Re: validation problem

2014-12-26 Thread Lukasz Lenart
2014-12-26 6:56 GMT+01:00 Yaragalla Muralidhar : > 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 Can you pack all the f

Re: validation problem

2014-12-26 Thread Yaragalla Muralidhar
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) &

Re: validation problem

2014-12-26 Thread Sreekanth S. Nair
ame 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 > &

Re: validation problem

2014-12-26 Thread Yaragalla Muralidhar
luded). 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 &am

Re: validation problem

2014-12-25 Thread Sreekanth S. Nair
and Regards,* > > > Muralidhar Yaragalla. > > > > > > *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: > > &

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
agalla.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

Re: validation problem

2014-12-25 Thread Sreekanth S. Nair
la.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 l

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
ttp://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

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, as far as i

Re: validation problem

2014-12-25 Thread Dave Newton
>>> private Map sampledrawnBy=new HashMap(); >>> private PDDto primaryDetails=new PDDto(); >>> @Override >>> public String execute() { >>> try{ >>> sampledrawnBy.put("zedlabs", "Zedlabs"); >>> sampleReg.savePrim

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
>> sampleReg.savePrimaryDetails(primaryDetails); >> }catch(Exception e){ >> log.error(e.getMessage(), e); >> } >> return SUCCESS; >> } >> >> public Map getSampledrawnBy() { >> return sampledrawnBy; >> } >> >> public void setSampled

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
ils; > } > > public void setPrimaryDetails(PDDto primaryDetails) { > this.primaryDetails = primaryDetails; > } > > > } > > > *Thanks and Regards,* > Muralidhar Yaragalla. > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* >

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
PDDto primaryDetails) { this.primaryDetails = primaryDetails; } } *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: > if the validation wo

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 > wrote: > > in my case validations are not happenening . Even though validation fails > > it is moving to succeess rath

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 the

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 wrote: > in my case validations are not happenening . Even though validation fails > it is moving to succ

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 wrote: &g

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 wrote: > is it because of the simple theam? In simple theam validations dont happen > is it? if i dont use

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
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. > > > > > > 1.0.3//EN" > >

Re: validation problem

2014-12-25 Thread Dave Newton
* > > On Thu, Dec 25, 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

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
m 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. > > "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd&

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. http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd";>

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? > > > &

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. regar

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.com<mailto:tamer.erdo...@vasco.com> P Please consid

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
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 wrote: > > > I have added it to the JIRA - >

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-

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

2014-08-25 Thread Dave Newton
s 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 wrote: >

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

2014-08-25 Thread Miguel Almeida
uld be made in JIRA to handle this. > > [1] http://tools.ietf.org/html/rfc6531 > > > > Cheers, > Paul > > > On Mon, Aug 25, 2014 at 10:46 AM, Miguel Almeida wrote: > > > This is the regex for email validation in Struts: > > > > \\b^['_a-

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

2014-08-25 Thread Paul Benedict
On Mon, Aug 25, 2014 at 10:46 AM, Miguel Almeida 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

  1   2   3   4   5   6   7   8   9   10   >