Re: Struts2 Validator failing constructor call

2024-04-16 Thread Łukasz Lenart
och, 17. April 2024 07:24 > An: 'Struts Users Mailing List' > Betreff: AW: Struts2 Validator failing constructor call > > Sure. I will try to figure out when it started to fail. > > -Ursprüngliche Nachricht- > Von: Lukasz Lenart > Gesendet: Mittwoch, 17.

AW: Struts2 Validator failing constructor call

2024-04-16 Thread s.goetz
/ff19dfee6f99f1650fc0c2484407d4ed75c2635e -Ursprüngliche Nachricht- Von: s.go...@inform-technology.de Gesendet: Mittwoch, 17. April 2024 07:24 An: 'Struts Users Mailing List' Betreff: AW: Struts2 Validator failing constructor call Sure. I will try to figure out when it start

AW: Struts2 Validator failing constructor call

2024-04-16 Thread s.goetz
Sure. I will try to figure out when it started to fail. -Ursprüngliche Nachricht- Von: Lukasz Lenart Gesendet: Mittwoch, 17. April 2024 06:35 An: Struts Users Mailing List Betreff: Re: Struts2 Validator failing constructor call pt., 12 kwi 2024 o 09:57 napisał(a): > > Our pa

Re: Struts2 Validator failing constructor call

2024-04-16 Thread Lukasz Lenart
pt., 12 kwi 2024 o 09:57 napisał(a): > > Our path was 2.3.4.1 -> 2.3.24.1 -> 2.5.xx (2, 26, 30) -> 6.0.0 -> 6.1.1 -> > 6.1.2.1 -> 6.3.0.2 (but I left out some minor upgrades) > Currently we are in OpenJDK 17. And the problem started with 6.3.0.2? Could you revert to 6.2.0 and check if everything

AW: Struts2 Validator failing constructor call

2024-04-12 Thread s.goetz
icht- Von: Lukasz Lenart Gesendet: Freitag, 12. April 2024 09:07 An: Struts Users Mailing List Betreff: Re: Struts2 Validator failing constructor call pt., 12 kwi 2024 o 08:19 napisał(a): > > Sorry for missing the Struts version. We are on 6.3.0.2 and can't wait to > move on to 7

Re: Struts2 Validator failing constructor call

2024-04-12 Thread Lukasz Lenart
pt., 12 kwi 2024 o 08:19 napisał(a): > > Sorry for missing the Struts version. We are on 6.3.0.2 and can't wait to > move on to 7 along with JDK 21 😊 Did you migrate from 6.2 recently? And what Java version do you use? Cheers Lulasz

AW: Struts2 Validator failing constructor call

2024-04-11 Thread s.goetz
iable workaround. Here is the relevant part of the validation config file: http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> ... more validators here ... ... more validators here

Re: Struts2 Validator failing constructor call

2024-04-11 Thread Lukasz Lenart
czw., 11 kwi 2024 o 17:07 napisał(a): > I have a 10 year old struts2 web application that uses validation with rules > defined in XML files. Do you try to migrate to the latest version? What version do you use? > One of these instantiates a java.util.Date to compare the the value of a bean > w

Struts2 Validator failing constructor call

2024-04-11 Thread s.goetz
Hi group! I have a 10 year old struts2 web application that uses validation with rules defined in XML files. One of these instantiates a java.util.Date to compare the the value of a bean with the current date: ( employee.birthday == null || employee.birthday.before(new java.

RE: No Form Found under '' in locale 'en_CA'. A Form Must be defined in the Commons Validator configuration...

2019-03-19 Thread Yasser Zamani
gt;Sent: Thursday, March 14, 2019 5:42 PM >To: user@struts.apache.org >Subject: No Form Found under '' in locale 'en_CA'. A Form Must be defined in >the >Commons Validator configuration... > >Morning, > >I am running into an issue, first let me give y

No Form Found under '' in locale 'en_CA'. A Form Must be defined in the Commons Validator configuration...

2019-03-15 Thread edmound . hubbard . oildex
Morning, I am running into an issue, first let me give you a high level of the problem. Main Site: When accessing website users are able to click a button which will trigger a series of Strut actions and take that user to a confirmation page. Everything works as it should. Now our new sc

Re: Struts 2 and Spring 4, how to get the validator or action object from spring application context

2016-09-26 Thread Lukasz Lenart
( or `autowire`) other beans in them. > > This validator is working fine which shows the validator is an spring bean: > > public class MyValidator(){ > > @javax.inject.Inject > private HelperClass aHelperClass; > } > > Now, i want to get th

Struts 2 and Spring 4, how to get the validator or action object from spring application context

2016-09-26 Thread Alireza Fattahi
We are using Struts 2.5 and spring 4. The struts is configured spring as mentioned in https://struts.apache.org/docs/spring-and-struts-2.html. The struts `actions` and `validators` are spring managed beans and I can `inject` ( or `autowire`) other beans in them. This validator is working fine

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: regex validator problem

2014-12-28 Thread Chris
`^` and `$`, at the beginning/end of the regex? On Sat, Dec 27, 2014 at 8:10 AM, Yaragalla Muralidhar wrote: > Hi Dave, >      when "-1" is getting submited it has to display error msg which is > not getting displayed. successfully moving to the next page. It is not > moving

Re: regex validator problem

2014-12-27 Thread Dave Newton
t getting displayed. successfully moving to the next page. It is not > moving to the input page even. > Now i have changed the validator to int so everything is working fine. > but i need regex validator to work even for further validations. > > *Thanks and Regards,*

Re: regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
Hi Dave, when "-1" is getting submited it has to display error msg which is not getting displayed. successfully moving to the next page. It is not moving to the input page even. Now i have changed the validator to int so everything is working fine. but i need regex validat

Re: regex validator problem

2014-12-27 Thread Dave Newton
On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar wrote: >> > validator in the following way but it is not working. Please help. Define "not working". -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton b: Bucky Bits g: davelnew

Re: regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
Number is fine Dev. But regex validator has to work right. i worked with it before. Now it is not working. I want to make it work. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* On Sat, Dec 27, 2014 at 6:37 PM, Dave Newton

Re: regex validator problem

2014-12-27 Thread Dave Newton
Why use a regex for what appears to be a number? On Dec 27, 2014 5:36 AM, "Yaragalla Muralidhar" wrote: > i have a select box. by defualt it submits "-1". I want to write a > validation using regex tosay the selection is mandatory. I have written the > validator i

regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
i have a select box. by defualt it submits "-1". I want to write a validation using regex tosay the selection is mandatory. I have written the validator in the following way but it is not working. Please help. cannot find error.branch.required *Thanks a

after changing validator stranze problem

2014-12-26 Thread Yaragalla Muralidhar
i have changed my validator from required to requiredstring and i am getting the following error. before changing everything is working fine. what could be the problem? Dec 26, 2014 2:22:05 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw

Re: FYI: Email Field Validator Always Fails in iOS 7 Safari Browser

2014-10-13 Thread John Boyer
we’ve found >> that the client-side XML email validator always fails in the iOS 7.1 Safari >> browser. We haven’t tested it iOS 8 yet. However, removing the email >> validation from the following XML solved the problem. >> >> >> >>

Re: FYI: Email Field Validator Always Fails in iOS 7 Safari Browser

2014-10-12 Thread Lukasz Lenart
2014-10-11 4:20 GMT+02:00 John Boyer : > Hi All: > > We’re using the latest version of Struts 2 in production and we’ve found that > the client-side XML email validator always fails in the iOS 7.1 Safari > browser. We haven’t tested it iOS 8 yet. However, removing the email &g

FYI: Email Field Validator Always Fails in iOS 7 Safari Browser

2014-10-10 Thread John Boyer
Hi All: We’re using the latest version of Struts 2 in production and we’ve found that the client-side XML email validator always fails in the iOS 7.1 Safari browser. We haven’t tested it iOS 8 yet. However, removing the email validation from the following XML solved the problem

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

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

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

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

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

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

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

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

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

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

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

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

Is the email regex validator in Struts validation incorrect?

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

Re: validator type="regex" : param name is regex , not expression

2013-09-19 Thread Chris
Thanks for the informations De : Lukasz Lenart À : Struts Users Mailing List Envoyé le : Jeudi 19 septembre 2013 7h59 Objet : Re: validator type="regex" : param name is regex , not expression Sometime ago ... with 2.3.12. I have renamed exp

Re: validator type="regex" : param name is regex , not expression

2013-09-18 Thread Lukasz Lenart
quot;. > > Regards > > Chris > > --- > > > Done, thanks for reporting! > > https://cwiki.apache.org/confluence/display/WW/Form+Validation+Using+XML > > 2013/9/16 Chris > >> Hi Lukasz, >> >> Good example of regex in >> http://struts.apache.org/developm

Re: validator type="regex" : param name is regex , not expression

2013-09-18 Thread Chris
rds Chris --- Done, thanks for reporting! https://cwiki.apache.org/confluence/display/WW/Form+Validation+Using+XML 2013/9/16 Chris > Hi Lukasz, > > Good example of regex in > http://struts.apache.org/development/2.x/docs/form-validation-using-xml.html , > and choose bet

Re: validator type="regex" : param name is regex , not expression

2013-09-16 Thread Lukasz Lenart
Done, thanks for reporting! https://cwiki.apache.org/confluence/display/WW/Form+Validation+Using+XML 2013/9/16 Chris : > Hi Lukasz, > > Good example of regex in > http://struts.apache.org/development/2.x/docs/form-validation-using-xml.html , > and choose between JavaScript va

validator type="regex" : param name is regex , not expression

2013-09-16 Thread Chris
Hi Lukasz, Good example of regex in http://struts.apache.org/development/2.x/docs/form-validation-using-xml.html ,   and choose  between JavaScript validator or Java validator will be another story .;-) but the file EditAction-validation.xml seems contain a wrong value. . I found it in

Re: Possible bug in URL validator

2013-09-11 Thread Bruno Klava
https://issues.apache.org/jira/browse/WW-4198 On Tue, Sep 10, 2013 at 5:09 AM, Lukasz Lenart wrote: > 2013/9/5 Bruno Klava : > > Hi folks, > > > > in Struts 2.3.15 the form-close-validate.ftl template was updated to use > > the regex field, but there is no such field in > > com.opensymphony.xwor

Re: Possible bug in URL validator

2013-09-10 Thread Lukasz Lenart
2013/9/5 Bruno Klava : > Hi folks, > > in Struts 2.3.15 the form-close-validate.ftl template was updated to use > the regex field, but there is no such field in > com.opensymphony.xwork2.validator.annotations.UrlValidator neither a > default value for it > in com.opensymphony.xwork2.validator.valid

Possible bug in URL validator

2013-09-05 Thread Bruno Klava
Hi folks, in Struts 2.3.15 the form-close-validate.ftl template was updated to use the regex field, but there is no such field in com.opensymphony.xwork2.validator.annotations.UrlValidator neither a default value for it in com.opensymphony.xwork2.validator.validators.URLValidator (like is done in

RE: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Martin Gainty
I dont know which DTD reference in which validator.xml is going fubar assume the dtd is co-located in same folder where Login-validation.xml is located at /pathToLoginValidationXML/xwork-validator-1.0.2.dtd you would need to change the http protocol to file protocol in the specified

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi Srikanth: That fixed it. Thank you! John On Aug 7, 2013, at 10:41 AM, Sreekanth S. Nair wrote: > use this > >"-//Apache Struts//XWork Validator 1.0.2//EN" > "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> >

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Chris Pratt
I don't know if it's the latest, but http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd appears to work. (*Chris*) On Wed, Aug 7, 2013 at 10:36 AM, John Boyer wrote: > Hi Martin: > > Okay, but my validation XML is pointing to > http://www.opensymphony.com/xwork/xwo

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Sreekanth S. Nair
use this http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> -- Regards Srikanth On Wed, Aug 7, 2013 at 11:06 PM, John Boyer wrote: > Hi Martin: > > Okay, but my validation XML is pointing to > http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd,

RE: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Martin Gainty
Hi John xwork-validator-1.0.2.dtd *should* be in xwork-core-.jar jar -tvf xwork-.jar | grep xwork-validator ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi Martin: Okay, but my validation XML is pointing to http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd, which is no longer available. What should it point to now? Thanks, John --- http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Sreekanth S. Nair
Try changing you xxx-validation.xml file dtd url declaration with the latest available dtd inside xwork-core.jar -- Thanks & Regards Srikanth On Wed, Aug 7, 2013 at 10:44 PM, John Boyer wrote: > Hi: > > Suddenly, in-production, we're getting file-not-found errors for the

[struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi: Suddenly, in-production, we're getting file-not-found errors for the xwork-validator-1.0.2.dtd at http://www.opensymphony.com/xwork. How can resolve this problem? We're running Struts 2 v2.3.4.1 Thanks, John - 10:01:18 ERROR h

Re: Int Validator

2013-07-13 Thread Alireza Fattahi
Thanks. Do you know how can I change below message: Invalid field value for field "amount" ?!   ~Regards, ~~Alireza Fattahi From: Dave Newton To: Struts Users Mailing List Sent: Saturday, 13 July 2013, 16:16 Subject: Re: Int Validator The f

Re: Int Validator

2013-07-13 Thread Dave Newton
The field value error comes from the type conversion process. The field should be an int or an Integer, with the caveat that an int has a default value of 0, which may not be desirable. Save On Jul 12, 2013 11:56 PM, "Alireza Fattahi" wrote: > Hi, > > I want to validate the amount filed to be a

Int Validator

2013-07-12 Thread Alireza Fattahi
Hi, I want to validate the amount filed to be an integer with minimum value of 1 I describe the field type as Integer (not int ) Add below validation rule                         ${getText("validate.required")}                             10             ${getText("validate.int.min")}        

Re: Validator with annotations

2013-06-28 Thread Simone Camillo Buzzi
Hi, the goal that I'm trying to reach is to reduce the number of variables and method into the Struts action to improve code readability and maintainability. I'm using hibernate, so I could obtain a good synergy if i can set value coming from parameters directly into the hibernate model bean, maint

Re: Validator with annotations

2013-06-28 Thread Maurizio Cucchiara
ic User getUser() { > if (user == null) > user = new User(); > return user; > } > > @RequiredStringValidator(key="fieldError.required", message = "*") > @EmailValidator (key="fieldError.emailFormat", message="*") > public void set

Validator with annotations

2013-06-27 Thread Simone Camillo Buzzi
ailFormat", message="*") public void setEmail(String email) { getUser().setEmail(email); } My bean receives data but validators stop to function, so I receive bad validation messages Does validator need a getter (not present also in the first release) or use reflecti

Re: common validator

2013-03-26 Thread Paul Benedict
ll return a boolean false if any > character that is typically used in sql injection is found). > > Each of my form classes has a validator() method. I was thinking of > creating my own abstract form class > > public abstract MyBaseForm() extends DynaValidatorForm { > >

Re: common validator

2013-03-26 Thread Muralidhar Yaragalla
ation for sql > injection attacks (I need a method that will return a boolean false if any > character that is typically used in sql injection is found). > > Each of my form classes has a validator() method. I was thinking of > creating my own abstract form class > > pu

common validator

2013-03-26 Thread J.V.
I have to add checking each and every form field in my application for sql injection attacks (I need a method that will return a boolean false if any character that is typically used in sql injection is found). Each of my form classes has a validator() method. I was thinking of creating my

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread Paul Benedict
Struts looks for the Validator configuration based on a key. The key is selected by the form. The key can either be the URI (DynaValidatorActionForm) or the Form Name (DynaValidatorForm). Your config file is obviously using bean names: So you need the correct Form superclass to select by bean

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread J.V.
Given my struts-config.xml entry in the previous post: what is the validator-users.xml entry supposed to look like? In other words what is wrong with my validator-users.xml file such that what is needed to be changed to get this to work? thanks for all the help. -- View this message in

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread J.V.
I am not sure I understand. -- View this message in context: http://struts.1045723.n5.nabble.com/DynaValidatorActionForm-using-Apache-Commons-Validator-project-tp5712255p5712261.html Sent from the Struts - User mailing list archive at Nabble.com

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread Paul Benedict
at superclass, > your Validator XML contents must change to this: > > > > Otherwise, switch your base class to DynaValidatorForm and keep your > Validator XML contents as-is. > > Paul > > On Thu, Mar 21, 2013 at 3:57 PM, J.V. wrote: > >> >> Is DynaValidatorActi

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread Paul Benedict
As I said, DynaValidatorActionForm validates by looking for the matching URI in the Struts Config. If you want to continue using that superclass, your Validator XML contents must change to this: Otherwise, switch your base class to DynaValidatorForm and keep your Validator XML contents as-is

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread J.V.
: http://struts.1045723.n5.nabble.com/DynaValidatorActionForm-using-Apache-Commons-Validator-project-tp5712255p5712258.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread Paul Benedict
have a working example where YourAction.java extends Action > and this action uses YourForm.java where DynaValidatorActionForm is used? > > I have an app (Struts 1.3), that I want to move away from using > MyForm.java / validator() method to declarative form validation using > Apache Comm

DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread J.V.
), that I want to move away from using MyForm.java / validator() method to declarative form validation using Apache Commons Validator project but have toiled and toiled to get it to work. Any help would be greatly appreciated. thanks J.V

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
> > > > > On Tue, Mar 19, 2013 at 3:50 PM, Muralidhar Yaragalla < > java.yaraga...@gmail.com> wrote: > > > This is how i did > > > > 1.0.2//EN" " > > http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> > > > >

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Yes I did. Not only this to that matter a simple reg which is shown in docs also did not work. so i concluded that validator itself is not working. I dont know why? On Wed, Mar 20, 2013 at 4:23 AM, Chris Pratt wrote: > Muralindhar, > I just realized I forgot the + from your original

Re: problem with regex validator

2013-03-19 Thread Chris Pratt
Try: [^<>]+ (*Chris*) On Tue, Mar 19, 2013 at 3:50 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > This is how i did > > http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> > > > > >

Re: problem with regex validator

2013-03-19 Thread Chris Pratt
that you suggested but it did not work. > any way i am fed up understanding that validator so i have written my own > and it works fine. Thanks all of you for helping me. > > > On Wed, Mar 20, 2013 at 12:30 AM, Chris Pratt >wrote: > > > I'm pretty sure you can&#

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
This is how i did http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> The value of bar2 must be in the format where x and y are between 0 and 9 Almost I have tried all the suggested combination by the members. It did not work. On Wed

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Dave Newton : > This is fun. don't push ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@st

Re: problem with regex validator

2013-03-19 Thread Dave Newton
This is fun. On Tue, Mar 19, 2013 at 6:29 PM, Lukasz Lenart wrote: > 2013/3/19 Muralidhar Yaragalla : > > are u asking me to show how i have written custom validator for regex? > > Nope, how did you configure built-in regex validator, the *-validation.xml > file > >

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > are u asking me to show how i have written custom validator for regex? Nope, how did you configure built-in regex validator, the *-validation.xml file Regards -- Łukasz + 48 606 323 122 http://www.lenart.org

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
are u asking me to show how i have written custom validator for regex? On Wed, Mar 20, 2013 at 3:50 AM, Lukasz Lenart wrote: > 2013/3/19 Muralidhar Yaragalla : > > I am not sure who is "toy". > > *you > > > Regards > -- > Łukasz >

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > I am not sure who is "toy". *you Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: use

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
I am not sure who is "toy". On Wed, Mar 20, 2013 at 3:44 AM, Lukasz Lenart wrote: > 2013/3/19 Muralidhar Yaragalla : > > i use struts 2.3.12 > > Could you show how did toy define regex validator? As I said, > expression param name was changed to regex > > >

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > i use struts 2.3.12 Could you show how did toy define regex validator? As I said, expression param name was changed to regex Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
i use struts 2.3.12 On Wed, Mar 20, 2013 at 3:15 AM, Lukasz Lenart wrote: > 2013/3/19 Muralidhar Yaragalla : > > something like "apple<>" (without quotes). > > Which version of Struts do you use? > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > ---

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
sorry for my comment. what you said is right. Thank you for that info. On Wed, Mar 20, 2013 at 3:04 AM, Lukasz Lenart wrote: > 2013/3/19 Muralidhar Yaragalla : > > As far as i remember commons logging is one of the implementation of > log4j. > > but xworks classes does not use log4j. I am saying

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > something like "apple<>" (without quotes). Which version of Struts do you use? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.a

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Paul Benedict : > Did you add the ^ and $ like I suggested? Is really not needed, I have tested with the Showcase app, just modify FieldValidatorsExampleAction-submitFieldValidatorsExamples-validation.xml and you can see the desired behaviour Regards -- Łukasz + 48 606 323 122 http://

Re: problem with regex validator

2013-03-19 Thread Paul Benedict
Did you add the ^ and $ like I suggested? On Tue, Mar 19, 2013 at 4:34 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > something like "apple<>" (without quotes). > > > On Wed, Mar 20, 2013 at 3:02 AM, Paul Benedict > wrote: > > > What input value are you testing against the regex?

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
something like "apple<>" (without quotes). On Wed, Mar 20, 2013 at 3:02 AM, Paul Benedict wrote: > What input value are you testing against the regex? > > On Tue, Mar 19, 2013 at 4:28 PM, Muralidhar Yaragalla < > java.yaraga...@gmail.com> wrote: > > > As far as i remember commons logging is one

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > As far as i remember commons logging is one of the implementation of log4j. > but xworks classes does not use log4j. I am saying this because i have used > the log that comes from the super class which is a xworks class and that is > not of log4j. No, is not. com

Re: problem with regex validator

2013-03-19 Thread Paul Benedict
What input value are you testing against the regex? On Tue, Mar 19, 2013 at 4:28 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > As far as i remember commons logging is one of the implementation of log4j. > but xworks classes does not use log4j. I am saying this because i have used

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
As far as i remember commons logging is one of the implementation of log4j. but xworks classes does not use log4j. I am saying this because i have used the log that comes from the super class which is a xworks class and that is not of log4j. On Wed, Mar 20, 2013 at 2:53 AM, Lukasz Lenart wrote:

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
I have modified the Showcase app and defined regexp as and everything works as expected. But I noticed one thing, I have renamed expression param into regex in 2.3.12, the question is which version do you use? http://struts.apache.org/development/2.x/docs/regex-validator.html Regards -- Łukas

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > I have added the following to log4j > > log4j.logger.com.opensymphony.xwork2.validator.validators=debug > > But it doe not print anything on console. The logger was set for console > and for file.(both appenders) Log4j is supported throughout commons-logging Re

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
ther validators are working fine except regex. > > > > > > On Wed, Mar 20, 2013 at 2:21 AM, Paul Benedict > > wrote: > > > > > When the validator isn't working, it could signify none of your > > validation > > > is working. Have

Re: problem with regex validator

2013-03-19 Thread Dave Newton
nedict > wrote: > > > When the validator isn't working, it could signify none of your > validation > > is working. Have you tried the "required-string" validator or anything > else > > is working? > > > > Paul > > > > On Tue, Mar 19

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Hi, All the other validators are working fine except regex. On Wed, Mar 20, 2013 at 2:21 AM, Paul Benedict wrote: > When the validator isn't working, it could signify none of your validation > is working. Have you tried the "required-string" validator or anything else &

Re: problem with regex validator

2013-03-19 Thread Paul Benedict
When the validator isn't working, it could signify none of your validation is working. Have you tried the "required-string" validator or anything else is working? Paul On Tue, Mar 19, 2013 at 3:49 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > Nothing

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Nothing works. I am not sure why? but then I am good with my custom validator for regex. One note is that xwork classes dont use log4j for logging. On Wed, Mar 20, 2013 at 2:09 AM, Paul Benedict wrote: > [^<>] means any character that is not the angled brackets. This is > correc

Re: problem with regex validator

2013-03-19 Thread Paul Benedict
tried with the regex that you suggested but it did not work. > any way i am fed up understanding that validator so i have written my own > and it works fine. Thanks all of you for helping me. > > > On Wed, Mar 20, 2013 at 12:30 AM, Chris Pratt >wrote: > > > I'm pret

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Hi Chris, I tried with the regex that you suggested but it did not work. any way i am fed up understanding that validator so i have written my own and it works fine. Thanks all of you for helping me. On Wed, Mar 20, 2013 at 12:30 AM, Chris Pratt wrote: > I'm pretty sure you can

  1   2   3   4   5   6   7   8   9   10   >