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  

Re: weakness or risky xml validation from server side ?

2013-09-21 Thread Lukasz Lenart
2013/9/21 Chris christal...@yahoo.fr: 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 ;-)

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 afatt...@yahoo.com: Hi, I want to stop xwork conversion from showing error during converting string to int. I found report.conversion.errors parameter which must be

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

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 !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.3//EN

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,

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

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

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

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

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 yaragallamur...@gmail.com Date: Sat, 21 Sep 2013 23:20:56 To: Struts Users Mailing Listuser@struts.apache.org; jlm...@gmail.com

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

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: !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.3//EN http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd; validators field

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 nesto...@gmail.com Date: Sat, 21 Sep 2013 16:15:23 To: Struts Users Mailing Listuser@struts.apache.org Reply-To: Struts Users Mailing List user@struts.apache.org

Re: S2: Not generating javascript validation

2013-09-21 Thread Néstor Boscán
Hi s:form name=login method=post action=login!login.action validate=true s:hidden name=request_id value=%{#parameters.request_id}/ s:textfield name=username key=username size=25 cssClass=mystyle1/ s:password name=password key=password size=25 cssClass=mystyle1/

Re: S2: Not generating javascript validation

2013-09-21 Thread Néstor Boscán
Hi s:form name=login method=post action=login!login.action validate=true s:hidden name=request_id value=%{#parameters.request_id}/ s:textfield name=username key=username size=25 cssClass=mystyle1/ s:password name=password key=password size=25 cssClass=mystyle1/

Url rewriting of .action to .jsp

2013-09-21 Thread Serdyn du Toit
Hi, I have the following Struts action defined in Xml: package name=login namespace=/admin/login extends=default default-interceptor-ref name=any / action name=login class=com.d6.adminweb.login.AdminUserLoginAction result name=input/admin/login/login.jsp/result