Aw: Re: Validation problem

2025-05-12 Thread Ute Kaiser
esign my error messages. Best regards Ute > Gesendet: Dienstag, 6. Mai 2025 um 10:55 > Von: "Lukasz Lenart" > An: "Struts Users Mailing List" > Betreff: Re: Validation problem > > > Not sure if I understood your issue, did you try to use escape ch

Re: Validation problem

2025-05-06 Thread shankar sawate
Do you have a new implementation of the Dojo DateTimePicker? If so, please share how to implement it, as the old one is deprecated On Tue, 6 May, 2025, 2:27 pm Lukasz Lenart, wrote: > śr., 30 kwi 2025 o 19:47 Ute Kaiser napisał(a): > > > > Hi, > > I tried according to > > https://struts.apache.

Re: Validation problem

2025-05-06 Thread Lukasz Lenart
śr., 30 kwi 2025 o 19:47 Ute Kaiser napisał(a): > > Hi, > I tried according to > https://struts.apache.org/core-developers/validation > Customizing validation messages > XML > > This is the example from above: > > > > getText('username.field.name') > > > >

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 Validatio

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]]>> [!CDATA[per

Re: validation checkboxlist

2018-01-07 Thread Lukasz Lenart
2018-01-05 19:26 GMT+01:00 José Antonio Delgado Trujillo : > Why not key? i have the correspondan property files > personBean.levels=Cursos > > I also see the label Cursos and the options Ok, but please be aware that the most important thing is a "name" attribute that must match the corresponding

Re: validation checkboxlist

2018-01-05 Thread José Antonio Delgado Trujillo
> “personBean.levels.isEmpty” Yes, it’s empty an in the form the first time rendered all the options are unchecked. > > You should use "name" instead of "key" Why not key? i have the correspondan property files personBean.levels=Cursos I also see the label Cursos and the options The proble

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

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

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

2015-12-17 Thread Łukasz Lenart
What about switching validateAnnotatedMethodOnly? This is going to be default in 2.5 probably https://struts.apache.org/docs/validations-annotation.html (mobile) 17 gru 2015 23:29 "JOSE L MARTINEZ-AVIAL" napisał(a): > Hello, > I'm using Struts 2.3.24.1. I have an action that has two execut

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

2015-12-17 Thread Adam Brin
You might be better off splitting the two actions into two different classes. As far as I know that's the only way to address the issue. If you have shared logic or fields, you can always put those in a superclass. On Thu, Dec 17, 2015 at 3:28 PM, JOSE L MARTINEZ-AVIAL wrote: > Hello, > I'm

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
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. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/

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 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
I will do that. Thank you so much. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ * On Fri, Dec 26, 2014 at 3:14 PM, Sreekanth S. Nair < sreekanth.n...@egovernments.org> wrote: > There is nothing about sorry, i guess your action package

Re: validation problem

2014-12-26 Thread Sreekanth S. Nair
There is nothing about sorry, i guess your action package structure or something is wrong, i recommend you to run the sample war i have attached in tomcat 7 and see the result (make sure to include strust2 latest lib to its WEB-INF/lib). Try adding your action class one by one to that sample and tr

Re: validation problem

2014-12-26 Thread Yaragalla Muralidhar
Hi Sreekanth, sorry to say this. I tried everything stated in the example that u gave. but it did not work for me. I am doing something wrong but could not find out what. Thank u for all your help. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/

Re: validation problem

2014-12-25 Thread Sreekanth S. Nair
Ok let me try and will get back to you... On Fri, Dec 26, 2014 at 11:26 AM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > 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

Re: validation problem

2014-12-25 Thread 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 i am using tomcat 7. *Thanks and Regards,* Muralidhar Yaragalla. *http://yara

Re: validation problem

2014-12-25 Thread Sreekanth S. Nair
Can you share a sample project which is not working, and just let me know which server you are trying..? -- Thanks & Regards Sreekanth S Nair Java Developer --- eGovernments Foundation Ph : 9980078913 -

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
Hi sreekanth, I have changed the names as u suggested but it did not work. i have read the link u posted and i did everything that the link says. i have debugged as well. it is not throwing any error. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/

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 underst

Re: validation problem

2014-12-25 Thread Dave Newton
Unrelated to the technical issue: bear in mind the mailing list is a volunteer-"staffed" resource. Nobody is deliberately delaying a response. We already know you need help. In the US, at least, it's a fairly major holiday, and people are doing things besides trying to reproduce your environment an

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
kindly help me solve this issue *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ * On Thu, Dec 25, 2014 at 8:02 PM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > my struts config.xml is as below.kindly help me in solving this

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
my struts config.xml is as below.kindly help me in solving this. http://struts.apache.org/dtds/struts-2.3.dtd";> /error.jsp /sampleReg/jsp/sampleRegTemplate.j

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
The following is my action class package com.zedlabs.samplereg.action; import java.util.HashMap; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.zedlabs.action.ZedActionSupport; import com.zedlabs.samplereg.dto.PDDto; import

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
I have changed the theme to css_xhtml so it should display right? *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ * On Thu, Dec 25, 2014 at 6:28 PM, Dave Newton wrote: > Then you're doing something else wrong; never mind. > > You stil

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/ * On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > I have changed the theme to css_xhtml

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 succeess rather than i

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/ * On Thu, Dec 25, 2014 at 6:15 PM, Dave Newton wrote: > Please rea

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 simple th

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
is it because of the simple theam? In simple theam validations dont happen is it? if i dont use simple theme view components are generating their own decoration. Our custom alignment is going wrong. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/

Re: validation problem

2014-12-25 Thread Dave Newton
Simple theme is simpler than you think. On Dec 25, 2014 4:46 AM, "Yaragalla Muralidhar" wrote: > I am using struts2.3.20 and using simple theme. > > *Thanks and Regards,* > Muralidhar Yaragalla. > > *http://yaragalla.blogspot.in/ * > > On Thu, Dec 25, 2014 at 4:08 P

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
I am using struts2.3.20 and using simple theme. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ * On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > Hi i am having problem in turning on validation

Re: Validation with DefaultActionValidatorManager throws NullPointerExeption

2014-02-26 Thread Lukasz Lenart
2014-02-26 16:59 GMT+01:00 Thomas Hermann : > Do you simply mean: > > - > DefaultActionValidatorManager validator = new > DefaultActionValidatorManager(); > validator.setFileManagerFactory(new DefaultFileManagerFactory()); > validator.validate(request

Re: Validation with DefaultActionValidatorManager throws NullPointerExeption

2014-02-26 Thread Thomas Hermann
Am 26.02.2014 13:48, schrieb Lukasz Lenart: 2014-02-26 13:35 GMT+01:00 Thomas Hermann : Hello, In a JUnit-Test and in a Ajax-Server I try to validate an Object with com.opensymphony.xwork2.validator.DefaultActionValidatorManager (Version 2.3.15.3). The MyObject-validation.xml file is provided

Re: Validation with DefaultActionValidatorManager throws NullPointerExeption

2014-02-26 Thread Lukasz Lenart
2014-02-26 13:35 GMT+01:00 Thomas Hermann : > Hello, > > In a JUnit-Test and in a Ajax-Server I try to validate an Object with > com.opensymphony.xwork2.validator.DefaultActionValidatorManager (Version > 2.3.15.3). > > The MyObject-validation.xml file is provided in the same directory as the > MyOb

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-16 Thread Lukasz Lenart
No problem! Thanks for conformation! 2013/12/16 Yasser Zamani : > I could not re-produce it with most recent version, 2.3.16. Both DTD > versions work correctly on an off-line Tomcat :) > > I think there is a mis-version-configuration between struts and xwork with > that non-maven old application.

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-16 Thread Yasser Zamani
I could not re-produce it with most recent version, 2.3.16. Both DTD versions work correctly on an off-line Tomcat :) I think there is a mis-version-configuration between struts and xwork with that non-maven old application. Sorry for the inconvenience! Thanks! On 12/15/2013 03:53 PM, Lukasz

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Lukasz Lenart
Hmm... so it must be some small bug, a typo somewhere. Can you register an issue with the stacktrace and explanation that it works with 1.0.2? Thanks -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/12/15 Yasser Zamani : > I reviewed Struts internally and discovered that in all places

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Yasser Zamani
I reviewed Struts internally and discovered that in all places it uses "1.0.2" instead of "1.0.3". So, I guessed if I rewrite my DOCTYPE to: 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> it may work. I tried and yeah, it works! (However, it's some was confusing that

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Lukasz Lenart
2013/12/14 Yasser Zamani : > Hi there, > > We have a Struts2 application with some validation XMLs with following > "DOCTYPE": > >1.0.3//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd";> > > > When we run this application on a server which has access to > "struts.apache.org",

Re: validation not happening

2013-09-19 Thread Yaragalla Muralidhar
The validation is working fine. Thank u so much. I did a little mistake and i found it. *Thanks and Regards,* Muralidhar Yaragalla. * * On Thu, Sep 19, 2013 at 11:56 PM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > My StudentRegistrationAction-validation.xml is as below:- > > htt

Re: validation not happening

2013-09-19 Thread Dave Newton
Not enough information to help, obviously. Dave On Thu, Sep 19, 2013 at 2:06 PM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > I am not using struts tags. > > *Thanks and Regards,* > Muralidhar Yaragalla. > * > * > > > On Thu, Sep 19, 2013 at 11:32 PM, Yaragalla Muralidhar < > yar

Re: validation not happening

2013-09-19 Thread Yaragalla Muralidhar
My StudentRegistrationAction-validation.xml is as below:- http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> Could not find error.admission.no ! Could not find error.admission.date My jsp code is as belo

Re: validation not happening

2013-09-19 Thread Yaragalla Muralidhar
I am not using struts tags. *Thanks and Regards,* Muralidhar Yaragalla. * * On Thu, Sep 19, 2013 at 11:32 PM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > Hi I am using struts2. I have craeted xx-validation.xml in the same dir of > action class xx.java. I am not sure why this is h

Re: Validation stack name

2012-07-18 Thread Łukasz Lenart
2012/7/19 Paul Benedict : > http://struts.apache.org/2.3.4/docs/validation.html > says: > "The default interceptor stack, "defaultStack", already has validation > turned on." > > Is that the right stack name? I thought the default stack name was > "struts-default" > > Is this an error in the doc or

Re: Validation stack name

2012-07-18 Thread Dave Newton
That's the package, not the stack. (pardon brevity, typos, and top-quoting; on cell) On Jul 18, 2012 9:20 PM, "Paul Benedict" wrote: > http://struts.apache.org/2.3.4/docs/validation.html > says: > "The default interceptor stack, "defaultStack", already has validation > turned on." > > Is that th

Re: Validation Help

2012-06-22 Thread Paul Mefford
lukasz.lenart, Thanks for your response. I am using Struts 2.1.8, Java 1.6 and tomcat 7. On Mon, Jun 18, 2012 at 12:02 AM, Łukasz Lenart < lukasz.len...@googlemail.com> wrote: > 2012/6/17 Paul Mefford : > > Can anyone give me some advice on how to fix the .xml loader so it finds > a > > xml fil

Re: validation method is being executed twice in IE (jCaptcha img)

2012-06-19 Thread Maurizio Cucchiara
Hi Lucas, we need some more further details... What S2 stack did you define for you action? Why do you suspect that your action is executed twice? Could you post the java and jsp fragments? Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921

Re: validation method is being executed twice in IE (jCaptcha img)

2012-06-19 Thread Dave Newton
How is it fetching the image? That shouldn't cause a request to the action. Dave (pardon brevity and typos, on cell) On Jun 19, 2012 4:58 AM, "lucas owen" wrote: > Hi Struts 2 Users! > > I have this little problem here, only in Internet Explorer (it works in > Firefox and Chrome): > > the actio

Re: Validation Help

2012-06-17 Thread Łukasz Lenart
2012/6/17 Paul Mefford : > Can anyone give me some advice on how to fix the .xml loader so it finds a > xml file using the wildcard in sturts.xml?  Or has anyone done this a > different way with validation? Struts 2 version ? App Sever ? You can implement your own logic how to handle validation u

Re: Validation doesn’t honor the bundle attribute in http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd

2012-03-01 Thread Dave Newton
http://struts.apache.org/1.2.4/userGuide/dev_validator.html#i18n On Thu, Mar 1, 2012 at 4:02 PM, joann luo wrote: > Hello, Dave: > > Thanks for pointing this out. > > I am working on a customer issue reported from a project that we released > quite a while ago. I won't be able to upgrade the str

Re: Validation doesn’t honor the bundle attribute in http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd

2012-03-01 Thread joann luo
Hello, Dave: Thanks for pointing this out. I am working on a customer issue reported from a project that we released quite a while ago. I won't be able to upgrade the struts JAR in this case. Since I have to stay with validator 1.1.3 is there any other way to provide customized error message for

Re: Validation doesn’t honor the bundle attribute in http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd

2012-03-01 Thread Dave Newton
You can't just update a validation DTD and expect everything to suddenly use a later version of the validation libraries. S1.2.4, AFAIK, uses validator 1.1.3. Hence all S1.2.4 code will be written assuming commons-validator 1.1.3. Capabilities introduced in later versions of commons-validator woul

Re: Validation doesn’t honor the bundle attribute in http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd

2012-03-01 Thread joann luo
Hello, I am sorry about the confusion before. I searched web app's component.xml file and found the following, therefore, we are actually using Struts1.2.4 in this project. Per my previous email, even though I updated the validation.xml and validator-rules.xml to point to validator_1_3_0.dtd,

Re: Validation doesn’t honor the bundle attribute in http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd

2012-03-01 Thread Jeffrey Black
Hi Joann, Can you please confirm what version of Struts you are using? You appear to be using Struts 2 for your application [1]; however it appears you are referencing Struts 1.x validation information. Perhaps I'm missing something? [1] http://struts.1045723.n5.nabble.com/How-to-implement-alte

Re: Validation FieldErrors missing after Struts2 Update (2.1.8 to 2.3.1.2)

2012-02-10 Thread Maurizio Cucchiara
I am glad it worked out. Twitter     :http://www.twitter.com/m_cucchiara G+          :https://plus.google.com/107903711540963855921 Linkedin    :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 10 February 2012 18:03, Jörg Bostelmann wrote: > > Hi Maurizio, > > thanks for you

Re: Validation FieldErrors missing after Struts2 Update (2.1.8 to 2.3.1.2)

2012-02-10 Thread Jörg Bostelmann
Hi Maurizio, thanks for your quick answer. This solved my problem. Field errors are shown :-) Thank you again, you saved my weekend :-) Wish you a nice weekend, Jörg - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org F

Re: Validation FieldErrors missing after Struts2 Update (2.1.8 to 2.3.1.2)

2012-02-10 Thread Maurizio Cucchiara
Hi Jorg, according to the docs [1] you should use struts.xwork.chaining.copyFieldErrors - set to true to copy Field Errors [1] http://struts.apache.org/2.3.1.2/xwork-core/apidocs/com/opensymphony/xwork2/interceptor/ChainingInterceptor.html Twitter :http://www.twitter.com/m_cucchiara G+

Re: Validation xml for Radio button

2010-11-15 Thread Li Ying
What data type of the property [yourAnswer] is ? If it is an int property, try delete the double-quotation surrounding the value 1. 2010/11/15 Prabhubalaji Ragavan : > Hi > I am using a radio option in my code. when i try to validate that thru the > validator.xml, the validation is not happenin

Re: Validation in Struts 1

2010-10-25 Thread Qiang Li
On Mon, 2010-10-25 at 14:01 -0400, Anjib Mulepati wrote: > ok so is this mean both is server side validation and client side > validation is done with Javascript? > > Also between these two(.xml and execute() method) which one is better? > Any pros and cons? > > Anjib > > On 10/25/2010 1:55 PM

Re: Validation in Struts 1

2010-10-25 Thread Dave Newton
On Mon, Oct 25, 2010 at 2:01 PM, Anjib Mulepati wrote: > ok so is this mean both is server side validation and client side validation > is done with Javascript? ??? No. Client-side validation is done with JavaScript, because that's what runs inside browsers. Server-side validation is done in Ja

Re: Validation in Struts 1

2010-10-25 Thread Anjib Mulepati
ok so is this mean both is server side validation and client side validation is done with Javascript? Also between these two(.xml and execute() method) which one is better? Any pros and cons? Anjib On 10/25/2010 1:55 PM, Dave Newton wrote: That's not combining client- and server-side valida

Re: Validation in Struts 1

2010-10-25 Thread Dave Newton
That's not combining client- and server-side validation, that's combining declarative and programmatic validation, unless you're talking about the JavaScript validation method. Dave On Mon, Oct 25, 2010 at 1:52 PM, Anjib Mulepati wrote: > Hi > > Can we combine client side validation and server s

Re: Validation Problem

2010-10-09 Thread Maurizio Cucchiara
It's a know bug. If your application doesn't run in a production environment you could download latest struts release from https://hudson.apache.org/hudson/view/Struts/job/struts2/ Maurizio Cucchiara 2010/10/9 Chris Miles : > Whenever the validation procedure returns to the "input" result, any >

Re: Validation with preloading form fields

2010-10-08 Thread Dave Newton
No sweat :) On Friday, October 8, 2010, Joshua Tennent wrote: >  That was it, thanks! I forgot to implement Preparable. > > On 10/8/2010 7:45 PM, Dave Newton wrote: > > Are you implementing Preparable, or overriding the input() method? > > Dave > > On Friday, October 8, 2010, Joshua Tennent  wrot

Re: Validation with preloading form fields

2010-10-08 Thread Joshua Tennent
That was it, thanks! I forgot to implement Preparable. On 10/8/2010 7:45 PM, Dave Newton wrote: Are you implementing Preparable, or overriding the input() method? Dave On Friday, October 8, 2010, Joshua Tennent wrote: I am having trouble validating a form where it requires preloading list

Re: Validation with preloading form fields

2010-10-08 Thread Dave Newton
Are you implementing Preparable, or overriding the input() method? Dave On Friday, October 8, 2010, Joshua Tennent wrote: >  I am having trouble validating a form where it requires preloading lists for > some of the fields. I'm not sure how to configure the struts.xml entry for > the INPUT ret

Re: validation and form display problem

2010-07-11 Thread Jake Vang
what i did was to override ValidationAware.hasErrors(). according to the docs, the workflow interceptor calls this method, if there are validation errors, it returns "input" and stops further execution of the action. i tried this... public boolean hasErrors() { boolean result = super.hasErrors();

Re: validation and form display problem

2010-07-11 Thread Burton Rhodes
That sounds like a classic 'prepare' problem. Take a look at the documentation on implementing Preparable in your action. You will want to initialize your backing beans inside the Prepare method in your action. That when 'input' is needed, your backing beans will be loaded. On 7/10/10, Jake Vang

RE: validation and form display problem

2010-07-10 Thread Martin Gainty
you could use the org.apache.struts2.config_browser.ShowValidatorAction then use java.beans.Introspector to acquire the bean from Validator.class try { java.beans.BeanInfo beanInfoFrom = java.beans.Introspector.getBeanInfo(validator.getClass(), Object.class); } catch (IntrospectionExc

Re: Validation of indexed properties

2010-02-26 Thread hugh111111
Sorry Cielpa, my mistake. Turns out there is such a thing as a DynaValidatorActionForm. Shows how much I know. Hugh hugh11 wrote: > > Hi Cielpa, > > 'Invalid property' would suggest that your form does not contain the > property searchList. It is difficult to tell without a bit of backg

Re: Validation of indexed properties

2010-02-26 Thread hugh111111
Hi Cielpa, 'Invalid property' would suggest that your form does not contain the property searchList. It is difficult to tell without a bit of background and seeing some code. Can you explain what you are doing and show me your struts-config.xml file. By the way, your form should be declared as a

Re: Validation of indexed properties

2010-02-25 Thread Cielpa
Hey, I have a similar problem with DynaValidatorActionForm. It says that invalid property when i have a ArrayList in the in the > I've got a problem relating to the validation of indexed properties in > Struts 1.1 > I get the following error message when I try to access an ArrayList of > stude

Re: validation in struts2

2010-01-21 Thread Shasha
> > > -Original Message- > From: Gabriel Belingueres > To: Struts Users Mailing List > Sent: Wed, Jan 20, 2010 10:12 am > Subject: Re: validation in struts2 > > > the form tag is wrong? > > try: > > > > 2010/1/19 Shasha : >> >> Hi

RE: validation in struts2

2010-01-20 Thread Raghuveer
Your XML file needs to be renamed as,LoginAction-validation.xml -Original Message- From: Gabriel Belingueres [mailto:belingue...@gmail.com] Sent: Wednesday, January 20, 2010 8:43 PM To: Struts Users Mailing List Subject: Re: validation in struts2 the form tag is wrong? try: 2010/1

Re: validation in struts2

2010-01-20 Thread musomesa
Also, the file should be LoginAction-validation.xml . Use the config-browser to see that you have the validators in place. Chris -Original Message- From: Gabriel Belingueres To: Struts Users Mailing List Sent: Wed, Jan 20, 2010 10:12 am Subject: Re: validation in struts2

Re: validation in struts2

2010-01-20 Thread Gabriel Belingueres
the form tag is wrong? try: 2010/1/19 Shasha : > > Hi All, > > I am not able to get the validation errors from Login-validation.xml when i > am using Modeldriven . > > Login-validation.xml >   1.   2.         "-//OpenSymphony Group//XWork Validator 1.0.2//EN" >   3.         "http://www.opensym

Re: validation question

2010-01-08 Thread Gabriel Belingueres
As a starting point you may check the freemarker .ftl files from the XHTML template. 2010/1/8 Robby Atchison : > Hello,  I would like to know how an actionname-validation.xml is tied to the > client-side validation.  I figure somewhere the xml file is read and > Javascript is output.  I'm having t

Re: Validation and conversion conflict - best method?

2009-11-30 Thread carl ballantyne
Hi Ben, Are you throwing a com.opensymphony.xwork2.conversion.TypeConversionException exception in your converter class when there is a problem converting the date? I have the following for my converter class: public class DateConverter extends StrutsTypeConverter { private static

Re: validation xml file

2009-11-29 Thread Nguyen Xuan Son
Dear denis i've attached the struts.xml file with this email the problem is when i dont input any information the system doesnt stop immediatly at LoginAction-validation.xml file but also implement LoginAction.java file thus the system check everything even it is not necessary it might make the sys

Re: validation xml file

2009-11-29 Thread Denis Cabasson
Everything seems to be looking good. Is your validation xml file in the same package as your action? Are you using the defaultStack interceptor stack? If you leave txtName or txtPass empty, are you still proceeding to C0002_Home.jsp? Something must not be in place, because your example seem

Re: validation xml file

2009-11-29 Thread Nguyen Xuan Son
I think i have it. here is the detail C0002_Home.jsp login.jsp Here is the HTML tag for the submit button Please tell me what should i correct? thank you very much 2009/11/30 Denis Cabasson > Do you have a result named "input" tied to your LoginAction? What is it? > > Denis. > > Nguyen Xuan

Re: validation xml file

2009-11-29 Thread Denis Cabasson
Do you have a result named "input" tied to your LoginAction? What is it? Denis. Nguyen Xuan Son a écrit : Dear all I have these in the LoginAction-validation.xml file false error false error but it seems that even there is a error it still continue to implement the LoginAction.java

Re: Validation and conversion conflict - best method?

2009-11-27 Thread Saeed Iqbal
Normally values go from JSP as String. Parse it using Date Formatter and convert it to Date yourself :) I have very interesting experiences with this. On Sat, Nov 28, 2009 at 12:05 AM, ben_979 wrote: > > Carl, if I could bother you for a few more details? > > I like your solution, it seems eleg

Re: Validation and conversion conflict - best method?

2009-11-27 Thread ben_979
Carl, if I could bother you for a few more details? I like your solution, it seems elegant (to me at least!). I'm trying to implement it, but I'm not getting the results that you are. I've set up the type converter, and I've verified that it is being invoked. When my conversion fails (for exam

Re: Validation and conversion conflict - best method?

2009-11-13 Thread ben_979
I have a related question, but it's a bit of a side-track as I try to solve my original problem. What is the naming convention and the difference between the two types of -validation.xml file naming? I think I understand that ActionClass-validation.xml is called for all (non-excluded) methods

Re: Validation and conversion conflict - best method?

2009-11-13 Thread carl ballantyne
Hi Ben, I think I understand your problem. I am have a similar situation where I have a person class with a birthday. I ended up writing a Converter to handle the date (because I needed it in the format dd/mm/). I used the Person-conversion.properties to say that I want that converter

Re: Validation and conversion conflict - best method?

2009-11-13 Thread Siddiq Syed
One quick solution might be , which I am using but most of them may not agree with me, -- Delcare a string in the action which take the value enter in the text box. -- Add the validation in the validation.xml as a regular expression and can add as "requiredString" , if the filed is mandatory to e

RE: validation

2009-08-19 Thread Sandy.Verfaille
I extended ActionSupport -Oorspronkelijk bericht- Van: mailtolouis2020-str...@yahoo.com [mailto:mailtolouis2020-str...@yahoo.com] Verzonden: woensdag 19 augustus 2009 12:17 Aan: Struts Users Mailing List Onderwerp: Re: validation Hi, In your action did you extends ActionSupport or

  1   2   3   4   5   6   7   8   9   10   >