struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dhananjay Makwana <makw...@semandex.net>
Subject Re: Struts2: Problem with form fields
Date Wed, 20 Mar 2013 13:25:12 GMT
Thanks for solution. I followed [2] and it works perfectly. Now any suggestions/patterns for

implementations of "acceptableParameterName(String)" method, apart from the obvious checking
of 
parameter startWith, endsWith etc.?
On 3/19/13 5:41 PM, Lukasz Lenart wrote:
> 2013/3/19 Dhananjay Makwana <makwana@semandex.net>:
>> I do have an excludePattern but that is for my css, js files. Here's my
>> struts.xml file. I am using version 2.3.8.
> I have double checked and your problem is related to acceptParamNames
> property of ParametersInterceptor which was defined very restrictive
> [1] to secure framework and applications. You can either relax the
> pattern (not recommended) or implement
> ParameterNameAware#acceptableParameterName(String) to accept param
> names by action [2].
>
> [1] http://struts.apache.org/development/2.x/docs/s2-009.html
> [2] http://struts.apache.org/development/2.x/docs/parameters-interceptor.html#ParametersInterceptor-Excludingparameters
>
>
> Regards



Mime
View raw message