The Struts 1.1 tags understand how to deal with a DynaBean, so you should be
fine. Is there something specific you're having trouble with?
Output configBean's (your DynaBean) alertColor property:
<bean:write name="configBean" property="alertColor" scope="application"/>
Define a bean for configBean's alertColor property:
<bean:define id="alertColorBean"
name="configBean"
property="alertColor"
scope="application"/>
Quoting Greg Dunn <[EMAIL PROTECTED]>:
> I set up my application's configuration data in an XML file, using JDOM to
> read it and populate a DynaBean with properties and values. I used a
> DynaBean because options can be added or deleted by the deployment site
> administrator. The DynaBean is then stored in application scope.
>
> I have no problem accessing properties of this bean in Java code, but how
> do
> I access them in a JSP without resorting to scriptlets? Is there an
> equivalent of
>
> <jsp:useBean id="myBean" scope="application" class="com.bean.myBean" />
>
> for use with a DynaBean?
>
> Do I need to re-think my approach here?
>
> Greg
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech <http://www.dotech.com/>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>