2016-11-16 18:47 GMT+01:00 Aleksandr Mashchenko <amashche...@apache.org>:
>>>> I would rather implement Map interface in HttpParameters and keep
>>>> backward compatibility, wdyt?
>>>
>>> Yes, or maybe just convert HttpParameters to Map in Dispatcher.
>>
>> It won't work, I mean it will work only for EL expression, i.e.:
>> ${parameters.contains('error')} but not for OGNL expressions.
>
> You mean because of the property accessors? Do we need accessors at all if
> we convert parameters to Map in Dispatcher?
>
> Something like: extraContext.put("parameters", parameters.toMap());
>
> In here:
> https://github.com/apache/struts/blob/master/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java#L680

but then having a dedicated class doesn't make sense, we cannot
control how those parameters are accessed. I know that there is no
much gain right now but I hope it will improve (as with accessors).


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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

Reply via email to