Re: report.conversion.errors

2013-09-21 Thread Alireza Fattahi
I found it in java doc http://struts.apache.org/release/2.0.x/struts2-core/apidocs/com/opensymphony/xwork2/util/XWorkConverter.html ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Saturday, 21 September 2013, 19:18 Subject

Url rewriting of .action to .jsp

2013-09-21 Thread Serdyn du Toit
Hi, I have the following Struts action defined in Xml: /admin/login/login.jsp /admin/dashboard/frames.jsp When I submit the page and validation fails my browser has the following Url: http://localhost:8080/webapp/admin/login/login.acti

Re: S2: Not generating javascript validation

2013-09-21 Thread Néstor Boscán
Hi It looks like this version of Struts 2 doesn't like the Dynamic Method Invocation in login!login.action. If I don't use DMI it works. Older versions of the framework worked with DMI. Regards, Néstor On Sat, Sep 21, 2013 at 5:24 PM, wrote: > Can you pr

Re: S2: Not generating javascript validation

2013-09-21 Thread Néstor Boscán
Hi Thanks for the help On Sat, Sep 21, 2013 at 5:24 PM, wrote: > Can you provide the jsp snipset for the form? > Sent via BlackBerry from T-Mobile > > -Original Message- > From: Néstor Boscán > Date: Sat, 21 Sep 2013 16:15:23 > To: Struts Users M

Re: S2: Not generating javascript validation

2013-09-21 Thread jlmagc
Can you provide the jsp snipset for the form? Sent via BlackBerry from T-Mobile -Original Message- From: Néstor Boscán Date: Sat, 21 Sep 2013 16:15:23 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: S2: Not generating javascript validation Hi I'm using the

S2: Not generating javascript validation

2013-09-21 Thread Néstor Boscán
Hi I'm using the latest 2.3.15.2 version of struts 2 on weblogic 10.3.6. This are my files: LoginAction-validation.xml: http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd";> El usuario es requerido La contrasenia es requerida validators.xml:

Re: report.conversion.errors

2013-09-21 Thread Yaragalla Muralidhar
I will check but anyway it will be a two step process. First i have to throw errors for invalid input and when they get rectified then i have to throw the validations errors which is not nice. *Thanks and Regards,* Muralidhar Yaragalla. * * On Sat, Sep 21, 2013 at 11:25 PM, wrote: > ** > I bel

Re: report.conversion.errors

2013-09-21 Thread jlmagc
I believe you can customize the error messages. Check the documentation. Sent via BlackBerry from T-Mobile -Original Message- From: Yaragalla Muralidhar Date: Sat, 21 Sep 2013 23:20:56 To: Struts Users Mailing List; Subject: Re: report.conversion.errors Hi nice but if the value i get i

Re: report.conversion.errors

2013-09-21 Thread Yaragalla Muralidhar
Hi nice but if the value i get is 'one' instead 1 then i will have convenience to check whether it is a text or number so that i can send a customized message instead a message from the framework which is not really pretty much understandable to the end user. if i can validate with validators i can

Re: report.conversion.errors

2013-09-21 Thread jlmagc
What is the purpose of validiting a field that cannot be converted to its corresponding java type? Let's say you have an int field that should be between 0 and 10. If instead of a number, you receive a String like 'one', there needs to ba a conversion error, it does not make sense to validate th

Re: report.conversion.errors

2013-09-21 Thread Yaragalla Muralidhar
This forces me to get all the input data as strings rather than appropriate datatype. is there a a way to rectify this? *Thanks and Regards,* Muralidhar Yaragalla. * * On Sat, Sep 21, 2013 at 10:53 PM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > Hi I have a similar kind of probl

Re: report.conversion.errors

2013-09-21 Thread Yaragalla Muralidhar
Hi I have a similar kind of problem. The conversion of parameters to java data types are happening before the validation happens. So in this when it is not able to convert it displays an error messages saying that invalid input in the field. Is there a way to change the priority. I mean if conversi

Re: [ANN] Struts 2.3.15.2 GA release available - security fix

2013-09-21 Thread Yaragalla Muralidhar
when ever we do modifications in the code the webapp is trying to reload automatically. at that point of time there is error happening and the webapp gets undeployed. Is this solved or still the problem exist? *Thanks and Regards,* Muralidhar Yaragalla. * * On Sat, Sep 21, 2013 at 9:36 PM, Lukas

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-21 Thread Néstor Boscán
With the DTD solved the NullPointerException problem but I'm still not getting the javascript code that validates per field. My files are: LoginAction-validation.xml http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd";> El usuario es requerido La contrasen

[ANN] Struts 2.3.15.2 GA release available - security fix

2013-09-21 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Struts 2.3.15.2 is available as a "General Availability" release.The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed t

Re: report.conversion.errors

2013-09-21 Thread Lukasz Lenart
Where did you find that information? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/9/21 Alireza Fattahi : > Hi, > > I want to stop xwork conversion from showing error during converting string > to int. > I found report.conversion.errors parameter which must be set in > xwo

Re: weakness or risky xml validation from server side ?

2013-09-21 Thread Lukasz Lenart
2013/9/21 Chris : > Don't you think , It could be a risk , using xml validation when the file > properties have changed ? > ( see also validator type="regex" : param name is regex , not expression in > archives ) It was one time change, maybe introduced in not the best way ;-) And any change is

report.conversion.errors

2013-09-21 Thread Alireza Fattahi
Hi,   I want to stop xwork conversion from showing error during converting string to int. I found report.conversion.errors parameter which must be set in  xwork-conversion.properties But it is not working, and during application starup up I get this error. How should I use this parameter   [ERROR]