struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <mbarr...@wfscorp.com>
Subject Re: [S2] Parameters Interceptor and Dojo
Date Fri, 29 Dec 2006 17:32:58 GMT
I attached a patch to WW-1551 that adds a property "excludeParams" to 
the params interceptor, taking a comma-delimited list of regular 
expressions.

regards
musachy

Musachy Barroso wrote:
> It would be nice to have a filter taking regular expressions. I logged 
> it: WW-1551
>
> musachy
>
> Don Brown wrote:
>> Well, we wouldn't want to simply hard-code the removal of that 
>> parameter...Isn't there a filter that you can configure it to pull 
>> out certain parameters?  If not, we should either create one, or add 
>> a parameter to the ParametersInterceptor that takes a list of request 
>> parameters to automatically filter out.
>>
>> Either way, worth a JIRA ticket :)
>>
>> Don
>>
>> Martin Cooper wrote:
>>> On 12/7/06, Musachy Barroso <mbarroso@wfscorp.com> wrote:
>>>>
>>>> To prevent browser caching, Dojo adds a parameter "dojo.preventCache"
>>>> with a random value to the request, this results in an exception like:
>>>>
>>>> 2006-12-07 09:54:07,916 ERROR
>>>> (com.opensymphony.xwork2.interceptor.ParametersInterceptor:191) -
>>>> ParametersInterceptor - [setParameters]: Unexpected Exception catched:
>>>> Error setting expression 'dojo.preventCache' with value
>>>> '[Ljava.lang.String;@2130c2'
>>>>
>>>> Somebody already mentioned it on the users list, and I saw it today.
>>>> Given that Dojo is distributed with S2, can we ignore this 
>>>> parameter in
>>>> the ParametersInterceptor to avoid the exception?
>>>
>>>
>>> I think we have to, at least for now. The parameter name is not 
>>> currently
>>> customisable (although that would make a fine enhancement request 
>>> for Dojo
>>> :).
>>>
>>> -- 
>>> Martin Cooper
>>>
>>>
>>> regards
>>>> musachy
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: dev-help@struts.apache.org
>>>>
>>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message