Re: How to do validation for Single Quote (') through validation.xml file?

2011-07-21 Thread Manos Batsis
of submit button by validation.xml file. AFAIK escaping of single-quotes is not required in property files but stuff like java.text.MessageFormat - try double apos instead ('') hth, Manos - To unsubscribe, e

Re: How to do validation for Single Quote (') through validation.xml file?

2011-07-21 Thread log2akshat
I got the Solution: But how can I escape the ' to display by .properties file in error message. I used (\') but its not working. Please anybody can help me on how to validate the number of words typed on click of submit button by validatio

How to do validation for Single Quote (') through validation.xml file?

2011-07-21 Thread log2akshat
Can somebody please tell me how to do validation for Single Quote (') through validation.xml file? My problem is that when anybody types in the form field I have set the javascript with onkeyup event that pops up the error on pressing single quote as well as for the maximum word limit set. B

Re: On applying action-validation.xml action is not executing.

2011-07-06 Thread Jeff Black
your Tiles configuration? jb / From: log2akshat To: user@struts.apache.org Sent: Sun, July 3, 2011 8:11:46 PM Subject: Re: On applying action-validation.xml action is not executing. Sorry for the confusion Actually, I have a form that needs to be validated and on s

Re: On applying action-validation.xml action is not executing.

2011-07-04 Thread Dave Newton
On Sun, Jul 3, 2011 at 9:11 PM, log2akshat wrote: > Action name is : Submitappform > The name of the action class is : SubmitAppFormAction > Validation file name : SubmitAppFormAction-validation.xml > > My *struts.xml* file for this a

Re: On applying action-validation.xml action is not executing.

2011-07-03 Thread log2akshat
form but as soon as I start using the validation script through action-validation.xml file the form starts validating but on submission of the form it is not populating the database and sending the mails only it is redirecting to the success page where it is only showing the errors and I am not

RE: [struts-user] Re: On applying action-validation.xml action is not executing.

2011-07-03 Thread Jason Pyeron
? > -Original Message- > From: log2akshat [mailto:akshat-...@iiitmk.ac.in] > Sent: Sunday, July 03, 2011 20:47 > To: user@struts.apache.org > Subject: [struts-user] Re: On applying action-validation.xml > action is not executing. > > No, validation is not fa

Re: On applying action-validation.xml action is not executing.

2011-07-03 Thread Dave Newton
I'm supposed to remember a previous post, for a different problem, realize they're related, on my cell phone? Right, okay, I'll let someone else jump through those hoops. Post complete questions, with code or config: why would you make it difficult for people to help you? It's difficult to guess

Re: On applying action-validation.xml action is not executing.

2011-07-03 Thread log2akshat
No, validation is not failing as you can see the screenshot in my previous post in an another problem. The problem is that when I am including the validation xml file the form is validating and displaying the errors but on submitting the form the method of the action class is not executing and disp

Re: On applying action-validation.xml action is not executing.

2011-07-03 Thread Dave Newton
abase & start sending mails, but when I am > using action-validation.xml the action is not able to execute and probably > what should be the reason for it? > > -- > View this message in context: http://struts.1045723.n5.nabble.com/On-applying-action-validation-xml-action-is-not-exec

On applying action-validation.xml action is not executing.

2011-07-03 Thread log2akshat
When I am removing the validation xml file the action is executing properly and injecting the data in the database & start sending mails, but when I am using action-validation.xml the action is not able to execute and probably what should be the reason for it? -- View this message in con

Re: how to Generate Validation.xml file

2011-05-02 Thread Burton Rhodes
Good luck on your interview! :-) On Monday, May 2, 2011, Dave Newton wrote: > On Monday, May 2, 2011, vijay333 wrote: >> http://struts.1045723.n5.nabble.com/file/n4364557/untitled.bmp > > Can't actually see the text that causes the error. (Personally I've > never had great luck with Eclipse and

Re: how to Generate Validation.xml file

2011-05-02 Thread Dave Newton
On Monday, May 2, 2011, vijay333 wrote: > http://struts.1045723.n5.nabble.com/file/n4364557/untitled.bmp Can't actually see the text that causes the error. (Personally I've never had great luck with Eclipse and XML files over the years.) > i have interview on Struts Why, I thought you were a be

how to Generate Validation.xml file

2011-05-02 Thread vijay333
hii i am Struts beginner, i am using myeclipes6.0 after creating the project ,i added Struts capabilities, all files generated but,VALIDATION.XML file not generated under WEBINF.Then i developed manually but,errors generated in validation.XML file .i.e http://struts.1045723.n5

Re: Localized -validation.xml

2011-01-12 Thread Dave Newton
try. For example I may have a County field for > my address which is required for the US but in Hong Kong they don't > require County. I was hoping that my setting the context locale I > would be able to get a different -validation.xml definition file. > > Paul > > On T

Re: Localized -validation.xml

2011-01-12 Thread Paul Mefford
y. I was hoping that my setting the context locale I would be able to get a different -validation.xml definition file. Paul On Tue, Jan 11, 2011 at 3:14 PM, Maurizio Cucchiara wrote: > I strongly recommend you read the following link [1], in particoular the > section that talks about &quo

Re: Localized -validation.xml

2011-01-11 Thread Maurizio Cucchiara
w of the best way to have different validation rules for different locales in the validation.xml. I created what I feel is a hack by using wildcard in the alias: Then I call startUS so my validation.xml file is named MyClass-startUS-validation.xml Is this the best or recommended way t

Localized -validation.xml

2011-01-11 Thread Paul Mefford
Does anyone know of the best way to have different validation rules for different locales in the validation.xml. I created what I feel is a hack by using wildcard in the alias: Then I call startUS so my validation.xml file is named MyClass-startUS-validation.xml Is this the best or

Re: comparing in validation.xml file

2009-12-02 Thread Greg Lindholm
/docs/validation.html [2] http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html On Wed, Dec 2, 2009 at 1:15 AM, Nguyen Xuan Son wrote: > > dear all > in C0003_ChangePasswordAction-validation.xml > i would like to compare the new password and the retype new password i

comparing in validation.xml file

2009-12-01 Thread Nguyen Xuan Son
dear all in C0003_ChangePasswordAction-validation.xml i would like to compare the new password and the retype new password in order to identify whether they are the same or not however so far i only know to validate the specified field only, such as true error true error true error

Re: drop down list not working after using validation.xml

2009-06-21 Thread Yanto
Hi, After used prepare the method we could see the dropdown values. But s:fielderror tag still displaying error messages even I selected the value from the dropdown. So that its not invoking my action class. Because assuming still one more selection not happened in the form. Why this behavior ? A

Re: empty validation.xml file - please help.

2009-06-21 Thread Yanto
are you using simple theme and struts 2.1.6 ? if yes you need to use tags s:fielderror and s:actionerror to display error On Sun, Jun 21, 2009 at 8:45 PM, Sam Wun wrote: > Hi, > > I tried generate a validation.xml file with "form name", "field > property", &q

empty validation.xml file - please help.

2009-06-21 Thread Sam Wun
Hi, I tried generate a validation.xml file with "form name", "field property", "msg name", and "key" in the file, but it doesn't generate these information in the file from the struts tags given in my ActionForm java file.

Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Greg, thanks for the link...seem this faq entry explain the problem that we face now...will try it... Thanks Yanto On Fri, Jun 19, 2009 at 11:15 PM, Greg Lindholm wrote: > Did you look at this FAQ entry? > > > http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-f

Re: drop down list not working after using validation.xml

2009-06-19 Thread Greg Lindholm
Did you look at this FAQ entry? http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-fails.html On Fri, Jun 19, 2009 at 10:43 AM, Girish Naik wrote: > One of my colleague had done it in some project. But dont know if its the > correct way. :( > > > Regards, > -

Re: drop down list not working after using validation.xml

2009-06-19 Thread Girish Naik
One of my colleague had done it in some project. But dont know if its the correct way. :( Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Samuel Goldwyn -

Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Girish, Is this mean we can load the list again in Action's Preparable method ? currently, we are trying looking at the sample in internet. Thanks & Regards Yanto On Thu, Jun 18, 2009 at 10:23 PM, Girish Naik wrote: > After validation, Action's Preparable method is called, you can load the

Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Dave, >>Please consider copying your code snippets into a plain-text editor before including them in an email message: we're getting a blank line between each line >>and a lot of spurious asterisks. noted :) Yes, we are loading the list with 10 values from database and struts creating the ins

Re: drop down list not working after using validation.xml

2009-06-18 Thread Girish Naik
After validation, Action's Preparable method is called, you can load the required list in request again. Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Samuel Goldwyn

Re: drop down list not working after using validation.xml

2009-06-18 Thread Dave Newton
Please consider copying your code snippets into a plain-text editor before including them in an email message: we're getting a blank line between each line and a lot of spurious asterisks. Yanto wrote: *org.apache.jasper.JasperException: tag 'select', field 'list', name 'entityInternalId': The

drop down list not working after using validation.xml

2009-06-17 Thread Yanto
y/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]* without validation xml and application page showing dropdown coming properly. Jsp page Validation.xml validators>

Problem with Action-validation.xml files

2008-12-11 Thread taj uddin
Hi,    In my application, I have added Action-validation.xml file and in the jsp page I set the attribute validate="true" in the s:form tag. After starting the server when i run the application this is the error( shown below) i'm facing. 12:16:21,46

Error with adding the Action-validation.xml files to my app.

2008-12-10 Thread taj uddin
Hi,    In my application, I have added Action-validation.xml file and in the jsp page I set the attribute validate="true" in the s:form tag. After starting the server when i run the application this is the error( shown below) i'm facing. 12:16:21,46

Re: [S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Juanjo Cuadrado
Néstor, thank for you reply... but: I have it all like you say (I don't know what do you mean with "You must have de validation and workflow interceptors configured" I have the struts file by default, I haven't configured any interceptor. Have I to do it?). I have put the result "input" but alway

Re: [S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Néstor Boscán
The way it worked for me was: 1.- You have to extend ActionSupport because it contains the fieldErrors, actionErrors attributes and the validation logic. 2.- I use dniParticipante 3.- You must have de validation and workflow interceptors configured 4.- You must have an "input" result because in ca

Re: [S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Lukasz Lenart
2008/10/14 Juanjo Cuadrado <[EMAIL PROTECTED]>: > No... but this too I have tried it :( Are you extending you package from struts-default? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Juanjo Cuadrado
No... but this too I have tried it :( 2008/10/14 Lukasz Lenart <[EMAIL PROTECTED]> > 2008/10/14 Juanjo Cuadrado <[EMAIL PROTECTED]>: > > Hi, > > > > I'm having problems to show a error message with validation xml file. > > > > This is the code in my struts.xml > > > > >cla

Re: [S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Lukasz Lenart
2008/10/14 Juanjo Cuadrado <[EMAIL PROTECTED]>: > Hi, > > I'm having problems to show a error message with validation xml file. > > This is the code in my struts.xml > >class="es.mec.adesi.ctl.actions.solicitudes.TestAction"> >/pages/opciones.jsp > Is es

[S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Juanjo Cuadrado
eturn Action.SUCCESS; } public String getDniParticipante() { return dniParticipante; } public void setDniParticipante(String dniParticipante) { this.dniParticipante = dniParticipante; } } And the validation file (TestAction-validation.xm

validation.xml and struts-config.xml error

2008-07-10 Thread semaj2008
Hi, I am getting following errors in validation.xml and struts-config.xml at line 1 in Eclipse. Referenced file contains errors (http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd). For more information, right click on the message and select "Show Details..." Referenced fil

Re: Struts2: How to put validation.xml and Action.java in separate folders

2008-04-09 Thread goelshek
ur actions into sub-packages anyway." I agree. 100 was an exaggerated number, just to make a point of what I am looking for. Laurie Harper wrote: > > goelshek wrote: >> For Struts 2: >> >> Does anyone know if it is possible to put the validation.xml for an >>

Re: Struts2: How to put validation.xml and Action.java in separate folders

2008-04-09 Thread Laurie Harper
goelshek wrote: For Struts 2: Does anyone know if it is possible to put the validation.xml for an Action in a folder other than where the action resides? If I have a 100 java classes in my action package, I would like their *-validation.xmls to be in a separate folder such that all .java'

Struts2: How to put validation.xml and Action.java in separate folders

2008-04-09 Thread goelshek
For Struts 2: Does anyone know if it is possible to put the validation.xml for an Action in a folder other than where the action resides? If I have a 100 java classes in my action package, I would like their *-validation.xmls to be in a separate folder such that all .java's are together an

Re: selective validation using validation.xml

2008-03-13 Thread ravi_eze
akash agrawal-2 wrote: > > Hi, > > Is this possible to do selective validation using validation.xml? What I > meant by this is that calling a different set of validation on > each(different) invocation of same action and same method. > > Quite possible: in that case u

Re: [S2] Maven2 and validation.xml

2008-03-12 Thread Lukasz Lenart
> Resource files are supposed to be in the resources folder... Just put > them there with the same path as your java class, and everything > should be copied where it's supposed to. If that does not fit your Yes, I did that but I was wondering how it should be, the good practice in case of Strut

Re: [S2] Maven2 and validation.xml

2008-03-12 Thread Nils-Helge Garli Hegvik
(http://maven.apache.org/mail-lists.html) Nils-H On Wed, Mar 12, 2008 at 4:22 PM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using maven2 to build my Struts2 application and how to solve the > problem with coping *-validation.xml files to target directory? > &

[S2] Maven2 and validation.xml

2008-03-12 Thread Lukasz Lenart
Hi, I'm using maven2 to build my Struts2 application and how to solve the problem with coping *-validation.xml files to target directory? All my *-validation.xml files are next to action classes, in the same package / directory (src/main/java/pl/org/lenart/s2) but they are no copied in to t

selective validation using validation.xml

2008-03-07 Thread akash agrawal
Hi, Is this possible to do selective validation using validation.xml? What I meant by this is that calling a different set of validation on each(different) invocation of same action and same method. Example: I call UpdateAction and update method and use UpdateAction-validation.xml and want to

Tags in validation.xml

2008-01-24 Thread Rajareegam, Jerry Ragland
Hi, I am trying to understand how to use the for a rule or can I give anything I want. (user defined) ? min18 max65 Thanks in Advance. -Jerry -- Notice: This e-mail messa

Re: acessing form values in validation.xml

2008-01-09 Thread Laurie Harper
Sivaswamynatha K wrote: Hi, Is it possible to access the form variables in the validation.xml file. I am using Struts 1.2.9 Ie. I have a requirement to enter the year field between 1800 to current year + years. In validation.xml

acessing form values in validation.xml

2008-01-09 Thread Sivaswamynatha K
Hi, Is it possible to access the form variables in the validation.xml file. I am using Struts 1.2.9 Ie. I have a requirement to enter the year field between 1800 to current year + years. In validation.xml

Struts - Validation.xml

2008-01-07 Thread VICKY K
Hi, How do I Validate the values in Combo box (OPTION COLLECTION) Regards, VICKY -- View this message in context: http://www.nabble.com/Struts---Validation.xml-tp14660707p14660707.html Sent from the Struts - User mailing list archive at Nabble.com

Re: [S2] dynamic validation.xml file iterating of form elements

2007-09-21 Thread Don Brown
> > > >referidos[%{#status.index}].apellido > > > tooltip="Ingrese el apellido" /> > > > > > > > onclick="this.form.action = > > 'invitar_delete.action?indexToDelete=%{#st

Re: [S2] dynamic validation.xml file iterating of form elements

2007-09-21 Thread Gabriel Belingueres
onclick="this.form.action = > 'invitar_delete.action?indexToDelete=%{#status.index}';" /> > > > > > > The question is HOW to write a validation.xml file for validating this form. > > I tried using a VisitorValidator, w

[S2] dynamic validation.xml file iterating of form elements

2007-09-07 Thread Gabriel Belingueres
: referidos[%{#status.index}].nombre referidos[%{#status.index}].apellido The question is HOW to write a validation.xml file for validating this form. I tried using a VisitorValidator, where I

Re: Validation using validation.xml issue

2007-09-05 Thread Laurie Harper
When the validator framework encounters an error, it forwards the request to the resource you identify with your 'input' attribute on the action mapping. I was suggesting making that point to an action, and using *that* action to load the lists. L. Ashish Kulkarni wrote: Hi The error is thro

Re: Validation using validation.xml issue

2007-08-31 Thread Ashish Kulkarni
Hi The error is thrown by validator frame work, and hence it never reaches action class where i can load those list again, I am not very sure how validtor framework works Ashish On 8/31/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Ashish Kulkarni wrote: > > Hi > > I have a defined following b

Re: Validation using validation.xml issue

2007-08-31 Thread Laurie Harper
Ashish Kulkarni wrote: Hi I have a defined following bean in struts-config.xml In my action class i set datereqList and pass it along to the jsp, the jsp displays it as drop down box, in my validtion.xml i am checking to make sure that color is not blank, So when validation finds that color is

Validation using validation.xml issue

2007-08-31 Thread Ashish Kulkarni
Hi I have a defined following bean in struts-config.xml In my action class i set datereqList and pass it along to the jsp, the jsp displays it as drop down box, in my validtion.xml i am checking to make sure that color is not blank, So when validation finds that color is blank it send response t

RE: Help in using regex in Validation.xml

2007-08-01 Thread sriharsha . chevuru
" cc Subject RE: Help in using regex in Validation.xml Ouch! You are correct. :-( I was looking at this a little more and I thought it would be nice to be able to do something like ^[001-999]\d{6}$ where the first three positions must be in the range of 001 through 999 (effectively filtering out the

RE: Help in using regex in Validation.xml

2007-08-01 Thread Rod Bollinger
: Struts Users Mailing List Subject: RE: Help in using regex in Validation.xml Not quite. With the regex ^000\d{6}$, if you DON'T get a match, the input could be any length and might not even be a number: after all, it isn't matching. All this checks is the particular case where you have

RE: Help in using regex in Validation.xml

2007-08-01 Thread sriharsha . chevuru
I appologise for the incomplete information. Let us assume that I address the length to be 9 and type to be digits criteria then this expression seems to address the not condition. Now, how do i use this expression in validation.xml, without actually writing my custom validator? Some

RE: Help in using regex in Validation.xml

2007-08-01 Thread Christopher Loschen
ems aren't addressed. Chris -Original Message- From: Rod Bollinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 01, 2007 10:33 AM To: 'Struts Users Mailing List' Subject: RE: Help in using regex in Validation.xml This won't actually work. The parentheses should be brac

RE: Help in using regex in Validation.xml

2007-08-01 Thread Rod Bollinger
Sent: Wednesday, August 01, 2007 06:17 To: Struts Users Mailing List Subject: Re: Help in using regex in Validation.xml On 8/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > This question can be termed as an OT as it is related to regex. I have a > validation criteria w

Re: Help in using regex in Validation.xml

2007-08-01 Thread Jasper Floor
On 8/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > This question can be termed as an OT as it is related to regex. I have a > validation criteria which says: > > a number cannot start with "000" which is 9 digits in length. > > Can somebody help me in writing a regular expression for

Help in using regex in Validation.xml

2007-07-31 Thread sriharsha . chevuru
Hi, This question can be termed as an OT as it is related to regex. I have a validation criteria which says: a number cannot start with "000" which is 9 digits in length. Can somebody help me in writing a regular expression for this? Thank you

Re: Cannot load a validator resource from '/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml'

2007-07-25 Thread Laurie Harper
Vitaliy Selivanov wrote: > Truncated. see log file for complete stacktrace Did you look at the log file? Look for the root cause of the ServletUnavailable exception. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Cannot load a validator resource from '/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml'

2007-07-25 Thread Vitaliy Selivanov
file: ___ javax.servlet.UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml'at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:

Re: [S2] Wildcard characters in Action-validation.xml

2007-07-10 Thread Don Brown
Nope, it currently isn't supported, although it is a great idea. I think there may be a JIRA ticket already for it, but if you can't find any, please create one. Of course, patches are very appreciated :) Don On 7/9/07, Wei Xu <[EMAIL PROTECTED]> wrote: I plan to use Struts validation frame t

[S2] Wildcard characters in Action-validation.xml

2007-07-08 Thread Wei Xu
I plan to use Struts validation frame to validate my input fields. I want to konw if there is a way to use wildcard characters such as "*?" in my validtion.xml. For instance: My*Book 1 true Here, this fieldName could be "MyOldBook", "MyNewBook", "MyBook" etc. I nev

Re: [s2] logon-validation.xml does not work in

2007-05-28 Thread Dave Newton
--- robinbajaj <[EMAIL PROTECTED]> wrote: > Here's my Logon-Validation.xml > http://rafb.net/p/FToVf186.html Is it really Logon-Validation.xml (capital "V")? Or is it really Logon-validaiton.xml (misspelled) like on nopaste? Or is it logon-validation.xml like in the

[s2] logon-validation.xml does not work in

2007-05-28 Thread robinbajaj
-validation.xml is located src/main/resources folder, which gets copied in Web-inf/classes folder on deployment (done through mvn jetty:run). I am trying to following this link from Struts2 bootstrap tutorial http://struts.apache.org/2.x/docs/validating-input.html and have an issue at the Validation

Passing arguments key dynamically in validation.xml

2007-03-21 Thread Prithivirajan Dhamodharan
Hi All, Is there any way to pass the argument value dynamically, say, Here, i need to change the key based on another form field name workflow.

Re: Brackets in validation.xml

2006-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Gundersen, Richard wrote: > Thanks for the lightning-fast response. Right place, right time. > I'd already suspected it might be something like that, so I was just > amending my code in a similar way. But, I was doing it the other way > ar

RE: Brackets in validation.xml

2006-12-12 Thread Gundersen, Richard
Yup That worked a treat Thanks Chris! -Richard -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 2:55 PM To: Struts Users Mailing List Subject: Re: Brackets in validation.xml -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard

RE: Brackets in validation.xml

2006-12-12 Thread Gundersen, Richard
parentheses is it?! ;-) Cheers Richard -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 2:55 PM To: Struts Users Mailing List Subject: Re: Brackets in validation.xml -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Gundersen

Re: Brackets in validation.xml

2006-12-12 Thread Martin Gainty
2006 9:30 AM Subject: Brackets in validation.xml Hi Can anyone please tell me why this works. It's two versions of a validation rule from my commons validator xml file (for a validwhen condition): ( ( (oldProductStatusId == 21) and ((productStatusId == 21) or (productStatusId == 2

Re: Brackets in validation.xml

2006-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Gundersen, Richard wrote: > Can anyone please tell me why this works. It's two versions of a > validation rule from my commons validator xml file (for a validwhen > condition): The parser that the validation package uses cannot parse express

Brackets in validation.xml

2006-12-12 Thread Gundersen, Richard
Hi Can anyone please tell me why this works. It's two versions of a validation rule from my commons validator xml file (for a validwhen condition): ( ( (oldProductStatusId == 21) and ((productStatusId == 21) or (productStatusId == 23) ) ) or ( (oldProductStatusId == 23) and ((produc

Re: Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from vali

2006-08-27 Thread James Sanders
: I can't find an example of how to insert an invalid credit card number into the error message "errors.creditcard={0} is an invalid credit card number". I'm using Struts 1.2.8 Here's my validation.xml snippet: cCard ${ccnum} With the above snippet, the error message

Re: Splitting validation.xml

2006-08-25 Thread Yujun Liang
mat as well, so Struts team may consider to change the Struts to do this as well, it saved a lot of trouble of maintaining a huge file. Regards On 8/12/06, Laurie Harper <[EMAIL PROTECTED]> wrote: Kevin Maeer wrote: > I want to split the validation.xml file into multiple files so some pa

Re: Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from vali

2006-08-25 Thread Niall Pemberton
wrote: I can't find an example of how to insert an invalid credit card number into the error message "errors.creditcard={0} is an invalid credit card number". I'm using Struts 1.2.8 Here's my validation.xml snippet: cCard ${ccnum} With the above snippet, the error

Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from validati

2006-08-25 Thread Robert Harrison
I can't find an example of how to insert an invalid credit card number into the error message "errors.creditcard={0} is an invalid credit card number". I'm using Struts 1.2.8 Here's my validation.xml snippet: cCard ${ccnum} With the above snippet, the error mess

Re: Unable to validate two different checkbox, through validation.xml

2006-08-15 Thread David Durham
Nilesh Sinha wrote: I have two different checkbox field in form. fields Property is boolean. I want to validate the form as: User should check at least one of the checkbox. Relevant info in the "Designing Complex Validations with validwhen" section of this document: http://struts.apache.or

Unable to validate two different checkbox, through validation.xml

2006-08-15 Thread Nilesh Sinha
I have two different checkbox field in form. fields Property is boolean. I want to validate the form as: User should check at least one of the checkbox. Regards, Nilesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Splitting validation.xml

2006-08-14 Thread Kevin Maeer
from within JDeveloper using its embedded OC4J and I get the following error when clicking any of the execute links on the index page: 503 Service Unavailable Servlet error: Cannot load a validator resource from '/org/apache/struts/validator/validator-rules.xml, /WEB-INF/validation.xml'

Re: Splitting validation.xml

2006-08-13 Thread Wendy Smoak
The ability to load validation rules from the classpath was added in r105785 [1] in November 2004. That was prior to the March 2005 announcement for Struts 1.2.7, so this should work. I tried it with the Struts Cookbook app from the svn trunk, and it worked fine in Tomcat 5.5. I move

Re: Splitting validation.xml

2006-08-13 Thread Martin Gainty
ing a copy. Thank you. - Original Message - From: "Kevin Maeer" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Sunday, August 13, 2006 8:24 PM Subject: RE: Splitting validation.xml > Initially I'm trying to get this to work us

RE: Splitting validation.xml

2006-08-13 Thread Kevin Maeer
August 2006 5:49 p.m. > To: Struts Users Mailing List > Subject: RE: Splitting validation.xml > > Kevin, > > A number of java application/web servers have issues with > files outside of > the web application directories. For example Tomcat has a > policy file tha

Re: Splitting validation.xml

2006-08-11 Thread Laurie Harper
Kevin Maeer wrote: I want to split the validation.xml file into multiple files so some pages can be more easily reused. If I save the new file under /WEB-INF/ and add it to the ValidatorPlugIn "pathnames" in struts-config.xml everything works fine. If I move the new file out into

RE: Splitting validation.xml

2006-08-10 Thread David Friedman
with it. Regards, David -Original Message- From: Kevin Maeer [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 1:34 AM To: 'Struts Users Mailing List' Subject: Splitting validation.xml I want to split the validation.xml file into multiple files so some pages can be m

Splitting validation.xml

2006-08-10 Thread Kevin Maeer
I want to split the validation.xml file into multiple files so some pages can be more easily reused. If I save the new file under /WEB-INF/ and add it to the ValidatorPlugIn "pathnames" in struts-config.xml everything works fine. If I move the new file out into the class hierarchy and

Re: internalization validation.xml

2006-06-03 Thread Jakub Milkiewicz
Hi Nobody answered me, so i decided to find a solution myself... If you want to have UTF-8 characters support in string literals (like in example i gave in previous mail), and you are not interestested in having utf8 support in identifiers (like UTF8 characters in property names) you need to follo

internalization validation.xml

2006-05-28 Thread Jakub Milkiewicz
Hi I am using struts validator to validate my form. I have a problem with validwhen when i use non english characters in comparison section. I tried: test (*this* == 'dowód') or

Re: Validating a subset of the element in validation.xml file

2006-02-03 Thread Yasser Al Masri
ull) { validator = FieldChecks.class.getMethod("validate" + StringUtils.capitalize(dependency), types); validations.put(dependency.toLowerCase(), validator); } validator.invoke(null, params); } Yasser Al Masri <[EMAIL PROTEC

validation.xml - "Attribute 'indexedProperty' used but not declared" ?

2006-01-31 Thread Josh McDonald
I've inherited an application (again) which supposed works, but on deployment I get this error. Google isn't being much help, can anybody shed some light on the subject? Cheers, -Josh -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland

Validating a subset of the element in validation.xml file

2006-01-27 Thread Yasser Al Masri
Hi, I have configured my form which contains 70 elements for validation using validation.xml file, and in many cases I needed to reuse the same exact definitions of the 's available within my for validation of subsets of that form, e.g., I need to enable the user to fill in fields

Re: To use form validation in conjunction with validation.xml

2006-01-21 Thread Raghu Kanchustambham
Thanks Rick! super.validate(mapping, request); works just fine for me. I am able to now use both the validation.xml as well as the ones coded in my actionform's validate method. :-) ~raghu~ On 1/21/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > How are you certain the validation.x

Re: To use form validation in conjunction with validation.xml

2006-01-20 Thread Rick Reumann
How are you certain the validation.xml isn't being called? Log the ActionErrors stuff in the try block after the call to validator.validate() Actually I think the easiest is to just validate what you need manually and then I think you should just be able to do: super.validate(mapping, re

Re: To use form validation in conjunction with validation.xml

2006-01-20 Thread Raghu Kanchustambham
Thanks Rick! You spotted it correct...It now executes the validate function of the form :-) Now I move onto second step. I cut paste the code that you sent in the action form's validate function. Now the problem is that validation.xml is not having any effect. Just to paste back the exact

  1   2   >