how to remove an element from a HashMap object

Guo Du <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi FreeMarkers,

I have a pojo class as rootMap with DefaultObjectWrapper. The pojo
class expose a HashMap object by getFooMap() which key/value are
string pairs.

The map object could be accessed without problem such as
${fooMap["bar"]}. But couldn't remove the element bar by
${fooMap.remove("bar")}, it show error "Expression fooMap.remove is
undefined".

I am wondering is there any build-in function could help me remove the
element from the map?

Thanks in advance!

-Guo

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.