>>> 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

---
Regards,
Aleksandr

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

Reply via email to