struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <David.K...@wamu.net>
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
archives.

> -----Original Message-----
> From: White, Joshua A (HTSC, CASD)
[mailto:Joshua.White@thehartford.com]
> 
> I would like to use the struts html taglig to generate a bunch of
> checkboxes.  While the following is not correct, it encapsulates what
I
> 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
(actually,
> it
> is not evaluated at all).  Using c:set to set a page level variable
that
> 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
can
> 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
all
> copies.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message