Re: How to process a bean and hash at the same time?
Guo Du <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, May 15, 2010 at 4:23 AM, ipolevoy <[email protected]> wrote: > Map: ${da_bean.age} > Bean: ${da_bean.name} > Is there a way to achieve this easier? Am I going in the wrong direction? By default bean wrapper, you may implement all Map method such as put(key,value), get(key), but NOT implement map interface as FM treat map object differently. FM will look at getter first (for da_bean.name) for normal java bean, if not found, will looking for get(key) signature (for da_bean.age). -Guo ------------------------------------------------------------------------------