tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Smith <>
Subject Re: Problems with <c:out> tag
Date Sun, 06 Jul 2003 02:53:47 GMT
Hi guys,

DynaActionForm has a method in it called getMap() which will return a map of
its properties.  So to get it to work in JSTL, you just need one more thing
in your tag.  Here is an example:

<c:out value="${}"/>

Hope this helps,

Peter Smith
Software Engineer
InfoNow Corporation

> From: Hans Bergsten <>
> Reply-To: "Tag Libraries Users List" <>
> Date: Sat, 05 Jul 2003 18:42:26 -0700
> To: Tag Libraries Users List <>
> Subject: Re: Problems with <c:out> tag
> Billy Bacon wrote:
>> Thanks for your response Hans, that was very helpful. This might be more of
>> a Struts issue then because I don't have a JavaBean for my 'Form' object. I
>> use the Struts DynaActionForm object which does all the 'getting' and
>> 'setting' for you. I have this element defined in my struts-config.xml
>> file...
>> <form-bean name="adminDownloadForm"
>> type="org.apache.struts.action.DynaActionForm">
>> <form-property name="idFlag" type="java.lang.Boolean" />
>> </form-bean>
>> Defining the property 'idFlag' with a type Boolean is all I have to do and
>> Struts pretty much does the rest of the getting/setting. I'm not sure how
>> the DynaActionForm is implemented since it's a core Struts class but in
>> anycase it doesn't look like I could fix this since I don't define the Bean.
> Ah, that explains it; JSTL knows nothing about the DynaActionForm class.
> IIRC, it's more or less a Map, but still not enough of a Map to be
> recognized as such by the JSTL EL.
> So in your case, may want to continue to use the Struct logic library
> instead of using JSTL's <c:if> for testing property values of these things.
> Hans
> -- 
> Hans Bergsten                                <>
> Gefion Software                       <>
> Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
> Details at                                    <>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message