R: JSTL and DynaBeans

2003-11-25 Thread Grassi Fabio
Would the alternative syntax ${bean[propertyA]} work better? Regards, Fabio. -Messaggio originale- Da: Pedro Salgado [mailto:[EMAIL PROTECTED] Inviato: martedì 25 novembre 2003 16:05 A: Struts Users Mailing List Oggetto: JSTL and DynaBeans I have been using the struts

Re: R: JSTL and DynaBeans

2003-11-25 Thread Pedro Salgado
I think that it only works for maps... I can use DynaActionForms and use ${formbean.map[key]}, but I am using BasicDynaBeans for the views. Pedro Salgado On 25/11/2003 15:34, Grassi Fabio [EMAIL PROTECTED] wrote: Would the alternative syntax ${bean[propertyA]} work better? Regards,

Re: R: JSTL and DynaBeans

2003-11-25 Thread Kris Schneider
One approach you might consider is something like: DynaBean bean = ...; Map beanMap = PropertyUtils.describe(bean); request.setAttribut(beanMap, beanMap); And then JSTL can just deal with the map. Another approach, at least for the database piece, is to use JSTL's Result and ResultSupport: