struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <>
Subject Re: [S2] conversion and REPORT_CONVERSION_ERRORS
Date Thu, 17 Jan 2008 17:06:58 GMT
Is there any other way of controlling whether XWorkConverter reports or ignores 
conversion errors, other than the application-wide servlet parameter 
REPORT_CONVERSION_ERRORS / report.conversion.errors?

I would like to control it action by action.

Actually, thinking on the hoof, if necessary I could write an interceptor to 
remove the errors when I want. But I hoped there was a built-in mechanism.


Martin Gainty on 15/01/08 16:15, wrote:
 > Hi Adam
 > this depends on the action you are calling
 > in other words if you are calling
 > com.opensymphony.xwork2.ActionSupport
 > then the initialisation parameter report.conversion.errors="false"
 > should be parsed and interpreted (correctly) to suppress conversion errors
 > from struts.xml
 > <struts>
 >     <servlet>
 >         <servlet-name>Andy</servlet-name>
 >         <servlet-class>com.opensymphony.xwork2.ActionSupport</servlet-class>
 >         <init-param>
 >             <param-name>report.conversion.errors</param-name>
 >             <param-value>false</param-value>
 >         </init-param>
 >     </servlet>
 > of course you will have to place any welcome-file jsps as well as result
 > jsp in the config to see whats going on
Adam Hardy on 15/01/08 13:28, wrote:
> Setting XWorkConverter.REPORT_CONVERSION_ERRORS to stop conversion 
> errors being reported - is it possible?
> I hope I don't appear to0 lazy to look for an answer but I could only 
> find non-specific references to this on, and nothing 
> on the mailing list or the wiki. So short of searching the XWork 
> codebase, I'm stuck.
> I assumed I could put
> <constant name="report.conversion.errors" value="false" />
> in the struts.xml but it didn't pay any attention to it.
> What is one supposed to do to repress conversion errors per action?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message