struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Referencing request parameters in struts tags.
Date Thu, 17 Nov 2016 22:13:00 GMT
2016-11-16 18:47 GMT+01:00 Aleksandr Mashchenko <amashchenko@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-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message