tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Hart" <>
Subject Re: Best Approaches for passing jstl expressions to other non jstltags
Date Mon, 05 May 2003 15:40:31 GMT
So there isn't a valid way to use c:out within another tag?  I was
thinking it was just a matter of escaping my double-quotes correctly.  I
do have bean-handling scenarios that I would like to avoid having to
place values in a 'top-level' variable in order to leverage the
context.getAttribute() solution.

>>> 05/05/03 11:01AM >>>

The following works for me I think:

<vls:makecontent audience="<%= context.getAttribute("audience") %>"
id="75" />

Or something akin. Obviously you don't have any bean-handling there,
you need to use <c:out> to get the value into a top-level variable.


On Mon, 5 May 2003, Brian Hart wrote:

> What is the correct syntax for populating values of your own custom
> properties using c:out.
> For example:
> <vls:makecontent audience="PARENTS"  id="75" />
> When replaced with JSTL expressions I am not getting values
> correctly:
> <vls:makecontent audience='<c:out value="${audience}"/>'  id='<c:out
> value="${contentID}"/>'  />
> any info would be appreciated.
> -Brian

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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message