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
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,
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:
3 matches
Mail list logo