struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksandr Mashchenko <amashche...@apache.org>
Subject Re: Referencing request parameters in struts tags.
Date Wed, 16 Nov 2016 17:47:33 GMT
 >>> 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-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message