struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <>
Subject RE: How to use JSTL taglib with struts html taglib
Date Mon, 28 Jul 2003 15:19:30 GMT
In the "contrib" directory of the Struts distribution, you'll find the
"Struts-EL" distribution, which is a "port" of the Struts tag library
that uses the JSTL EL engine to evaluate attribute values.  Search the
archives for "Struts-EL".  There is a "README" in the Struts-EL
distribution, and there's a few paragraphs in the Struts website
documentation.  Despite the extreme paucity of documentation for it, it
should be relatively clear how to use it, along with references from the

> -----Original Message-----
> From: White, Joshua A (HTSC, CASD)
> I would like to use the struts html taglig to generate a bunch of
> checkboxes.  While the following is not correct, it encapsulates what
> would like to do:
> <c:forEach items="${myForm.myInformationView}" var="basicView">
>     <html:checkbox property="myItems" value="<c:out
> value='${basicView.itemId}'/>"/><br>
> </c:forEach>
> I am looping throught the collection using the jstl forEach tag.  The
> problem is that c:out is not evaluated as a runtime expression
> it
> is not evaluated at all).  Using c:set to set a page level variable
> you
> could use in a runtime expression does not work either.
> Is there a way to use both jstl and the struts html taglib here?  How
> it
> be done?
> Regards,
> Joshua
> This communication, including attachments, is for the exclusive use of
> addressee and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, any use, copying,
> disclosure, dissemination or distribution is strictly prohibited. If
> you are not the intended recipient, please notify the sender
> immediately by return email and delete this communication and destroy
> copies.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message