struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty (JIRA)" <>
Subject [jira] Commented: (WW-2688) Ignore parameters that start with 'struts.'
Date Tue, 10 Mar 2009 23:18:02 GMT


Martin Gainty commented on WW-2688:

this is still a problem with struts2-showcase-2.1.2 example.. here is the output from TOMCAT

expr: struts.enableJSONValidation val: [Ljava.lang.String;@eb9f58 context: ognl.
OgnlContext@21989cef root:[org.apache.struts2.showcase.ajax.AjaxTestAction@1e5ed
7b, com.opensymphony.xwork2.DefaultTextProvider@a8e2b8] value: [Ljava.lang.Strin
[ERROR] ParametersInterceptor - ParametersInterceptor - [setParameters]: Unexpec
ted Exception caught setting 'struts.enableJSONValidation' on 'class org.apache.
struts2.showcase.ajax.AjaxTestAction: Error setting expression 'struts.enableJSO
NValidation' with value '[Ljava.lang.String;@eb9f58'
[WARN] OgnlValueStack - Could not find property [org.apache.catalina.jsp_file]

it would be a great idea not to use OGNL to reference this parameter but as a startup paramater
for Struts in web.xml:

(BTW the actionPackages parameter works for actionPackages so the suggestion for struts.enableJSONValidation
would work as well)
Can we try this for org.apache.catalina.jsp_file?
Can we try this for template?


> Ignore parameters that start with 'struts.'
> -------------------------------------------
>                 Key: WW-2688
>                 URL:
>             Project: Struts 2
>          Issue Type: Improvement
>    Affects Versions: 2.1.3
>            Reporter: Musachy Barroso
>             Fix For: 2.1.3
> Parameters used internally by struts, like "struts.enableJSONValidation" should be ignored
by the 'params' interceptor, so no exception/warn is logged. A new regular expression will
be added to that interceptor:
> ^struts\..*
> as well as:
> dojo\..*
> which is already there in some interceptor stacks.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message