Re: Struts2 Validator failing constructor call

2024-04-17 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. April 202

AW: Struts2 Validator failing constructor call

2024-04-17 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 started to fail

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

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

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 alon

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-12 Thread s.goetz
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 ... We are us

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 >

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

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
nt: 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 you a high level of the pr

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

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

2016-09-26 Thread Lukasz Lenart
ed beans and I can > `inject` ( 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; > } &

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

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

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

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

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

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

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

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

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

form-xml-validation sample / boolean validator / over21

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

Re: regex validator problem

2014-12-28 Thread Chris
Hi, 1 - When you wrote select box, did you mean drop-down list ? Because drop-down list are not exactly  input fields. The user can't write something he wants. Could you please give examples ? 2 - Why don't you use validator type=requiredstring like in EditAction-validation.xml ? 3 - If you

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. field-validator type=regex param name=regex![CDATA[[1-9]{1,3}]]/param

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 yaragallamur...@gmail.com 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

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 davelnew

Re: regex validator problem

2014-12-27 Thread Dave Newton
On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar yaragallamur...@gmail.com 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: davelnewton so: Dave

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 validator to work even

Re: regex validator problem

2014-12-27 Thread Dave Newton
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 validator to work even for further validations. *Thanks and Regards,* Muralidhar Yaragalla. *http

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
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. field name=user.email field-validator type=email

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 j...@rodaxsoft.com: 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

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. field name

Is the email regex validator in Struts validation incorrect?

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

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

2014-08-25 Thread Paul Benedict
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

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?

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

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

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 mig...@almeida.at: 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) validator type=regex param name

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

2013-09-19 Thread Chris
Thanks for the informations De : Lukasz Lenart lukaszlen...@apache.org À : Struts Users Mailing List user@struts.apache.org Envoyé le : Jeudi 19 septembre 2013 7h59 Objet : Re: validator type=regex : param name is regex , not expression Sometime ago

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

2013-09-18 Thread 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 between JavaScript validator or Java

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

2013-09-18 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 validator or Java

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

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

2013-09-16 Thread Lukasz Lenart
validator or Java validator will be another story .;-) but the file EditAction-validation.xml seems contain a wrong value. . I found it in testing PhoneNumber with many wrong values and it always worked ! I thought maybe a jar is missing ? But it was the param name in the file EditAction

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 lukaszlen...@apache.orgwrote: 2013/9/5 Bruno Klava bkl...@gmail.com: 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

Re: Possible bug in URL validator

2013-09-10 Thread Lukasz Lenart
2013/9/5 Bruno Klava bkl...@gmail.com: 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

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

[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 http-8443-1

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

2013-08-07 Thread Sreekanth S. Nair
-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 http-8443-1 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager - Caught

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 --- ?xml version=1.0 encoding=UTF-8? !DOCTYPE validators PUBLIC -//OpenSymphony Group

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-version.jar jar -tvf xwork-version.jar | grep xwork-validator ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich

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 !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.2//EN http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd; -- Regards Srikanth On Wed, Aug 7, 2013 at 11:06 PM, John Boyer j...@rodaxsoft.com wrote: Hi Martin: Okay, but my

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 j...@rodaxsoft.com wrote: Hi Martin: Okay, but my validation XML is pointing to http://www.opensymphony.com/xwork/xwork

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 sreekanth.n...@egovernments.org wrote: use this !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.2//EN http://struts.apache.org/dtds/xwork-validator

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

2013-07-13 Thread Dave Newton
filed to be an integer with minimum value of 1 I describe the field type as Integer (not int ) Add below validation rule field name=amount field-validator type=required message ${getText(validate.required)}/message /field-validator field-validator

Re: Int Validator

2013-07-13 Thread Alireza Fattahi
: Re: Int Validator 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 afatt...@yahoo.com wrote: Hi, I want

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     field name=amount         field-validator type=required             message ${getText(validate.required)}/message         /field

Re: Validator with annotations

2013-06-28 Thread Maurizio Cucchiara
=fieldError.required, message = *) @EmailValidator (key=fieldError.emailFormat, 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

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,

Validator with annotations

2013-06-27 Thread Simone Camillo Buzzi
(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 reflection on local variables to check data? How can I implement my new data model in Struts2 dependency

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

2013-03-26 Thread Muralidhar Yaragalla
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 own abstract form class public abstract MyBaseForm() extends

Re: common validator

2013-03-26 Thread Paul Benedict
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 public abstract MyBaseForm() extends DynaValidatorForm { public boolean validateSQL

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: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread Paul Benedict
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 Commons Validator project

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread J.V.
=error.validation.password/ /field /form -- View this message in context: 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

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: form name=/your_context/your_executing_action Otherwise, switch your base class to DynaValidatorForm

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread Paul Benedict
, your Validator XML contents must change to this: form name=/your_context/your_executing_action 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. jvsr...@gmail.com wrote

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

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: form name=loginFormBean So you need the correct Form

Re: problem with regex validator

2013-03-19 Thread Maurizio Cucchiara
/maurizio.cucchiara?r=maurizio.cucchiara Maurizio Cucchiara On 19 March 2013 08:31, Muralidhar Yaragalla java.yaraga...@gmail.com wrote: Hi I am defining a reg which is valid in java. The regex is [^]+. But when i use this with regex validator it displays error. The error is It should consist

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
=maurizio.cucchiara Maurizio Cucchiara On 19 March 2013 08:31, Muralidhar Yaragalla java.yaraga...@gmail.com wrote: Hi I am defining a reg which is valid in java. The regex is [^]+. But when i use this with regex validator it displays error. The error is It should consist well formed

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: I tried with what you suggested. This gives different problem. I don't think we should think about cdata and all. regex means it should be just regex. You should think about taking some XML experience - CDATA has nothing to do with

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Basically i want use regular expressions in validators. xml experience is fine but why sould i learn dtd syntax to write simple regex for regex validator? Anyways the suggested regex with cdata by another user is also not working. so any help on writing regex for regex validator which is equalent

Re: problem with regex validator

2013-03-19 Thread Dave Newton
for regex validator? Anyways the suggested regex with cdata by another user is also not working. so any help on writing regex for regex validator which is equalent to [^] this , (which is also valid for most of the regex engines including java.) will be appreciated. Thanks in advance. On Tue, Mar

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: Basically i want use regular expressions in validators. xml experience is fine but why sould i learn dtd syntax to write simple regex for regex validator? Anyways the suggested regex with cdata by another user is also not working. so any

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
If i pass ![CDATA[[^]+]] in the xml file to the regex validator the xml file is not generating any error but then the input is allowing the and characters. That means still there is problem. Any help on this? On Tue, Mar 19, 2013 at 4:59 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/3

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: If i pass ![CDATA[[^]+]] in the xml file to the regex validator the xml file is not generating any error but then the input is allowing the and characters. That means still there is problem. Any help on this? Maybe the problem

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
I tried but it shows up the earlier problem. (formatted character data) On Tue, Mar 19, 2013 at 5:45 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: If i pass ![CDATA[[^]+]] in the xml file to the regex validator the xml file

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
The regex that i am trying works in java and also works with most regex engines but that is not working with regex validator. On Tue, Mar 19, 2013 at 5:45 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: If i pass ![CDATA

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: I tried but it shows up the earlier problem. (formatted character data) Did you put it inside CDATA block? You must use CDATA as and are xml specific characters. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: The regex that i am trying works in java and also works with most regex engines but that is not working with regex validator. RegexFieldValidator uses java.util.regex.Pattern internally, try to increase logging level to DEBUG

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Now I tried ![CDATA[^[]+]] this. when I did this the xml file does not show any error but the problem is validation does not happen. On Tue, Mar 19, 2013 at 7:51 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: I tried but it shows up

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: Now I tried ![CDATA[^[]+]] this. when I did this the xml file does not show any error but the problem is validation does not happen. Ok, but what value did you try to enter into the field? Do you use s:actionerror/ / s:fielderror/ tag? or

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
works with most regex engines but that is not working with regex validator. RegexFieldValidator uses java.util.regex.Pattern internally, try to increase logging level to DEBUG for it and you should see in the log the regexp it tries to use: Defined regexp as [#0] Regards -- Łukasz

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: Do u want me to change the application log4j level to debug or is there anything that i should do in struts? log4j Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Hi I am using s:fielderror/ in my jsp. The value that i entered in the field is hjghj(without quotes). On Tue, Mar 19, 2013 at 8:22 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: Now I tried ![CDATA[^[]+]] this. when I did this the

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: Hi I am using s:fielderror/ in my jsp. The value that i entered in the field is hjghj(without quotes). So everything is ok, hjghj matches ^[]+ and there is no error. http://regexp.pl/main/show/182003 Regards -- Łukasz + 48 606 323 122

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Then i tried jhbkkjnklj this but no validation. when i press the submit button of the form the following log is being generated on the server 2013-03-19 20:48:49 DEBUG cache:81 - template/xhtml/fielderror.ftl[en_US,UTF-8,parsed] no source found. 2013-03-19 20:48:49 DEBUG cache:81 -

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: Then i tried jhbkkjnklj this but no validation. when i press the submit button of the form the following log is being generated on the server 2013-03-19 20:48:49 DEBUG cache:81 - template/xhtml/fielderror.ftl[en_US,UTF-8,parsed] no

Re: problem with regex validator

2013-03-19 Thread 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) On Tue, Mar 19, 2013 at 8:56 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/3/19

Re: problem with regex validator

2013-03-19 Thread Chris Pratt
I'm pretty sure you can't use CDATA inside an attribute value. Have you tried: [^lt;gt;] (*Chris*) On Tue, Mar 19, 2013 at 8:52 AM, Muralidhar Yaragalla java.yaraga...@gmail.com wrote: I have added the following to log4j log4j.logger.com.opensymphony.xwork2.validator.validators=debug

Re: problem with regex validator

2013-03-19 Thread Dave Newton
It's not an attribute value, it's an element's content. On Tue, Mar 19, 2013 at 3:00 PM, Chris Pratt thechrispr...@gmail.comwrote: I'm pretty sure you can't use CDATA inside an attribute value. Have you tried: [^lt;gt;] (*Chris*) On Tue, Mar 19, 2013 at 8:52 AM, Muralidhar Yaragalla

Re: problem with regex validator

2013-03-19 Thread Chris Pratt
My bad, but the [^lt;gt;] should still work. (*Chirs*) On Tue, Mar 19, 2013 at 12:06 PM, Dave Newton davelnew...@gmail.com wrote: It's not an attribute value, it's an element's content. On Tue, Mar 19, 2013 at 3:00 PM, Chris Pratt thechrispr...@gmail.com wrote: I'm pretty sure you

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 thechrispr...@gmail.comwrote: I'm pretty sure

Re: problem with regex validator

2013-03-19 Thread Paul Benedict
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 thechrispr...@gmail.com wrote: I'm pretty sure you can't use CDATA

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 pbened...@apache.org wrote: [^lt;gt;] means any character that is not the angled brackets

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 works. I am not sure why

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 pbened...@apache.org 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 Dave Newton
pbened...@apache.org 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, 2013 at 3:49 PM, Muralidhar Yaragalla java.yaraga...@gmail.com wrote

  1   2   3   4   5   6   7   8   9   10   >