tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: Best Approaches for passing jstl expressions to other non jstl tags
Date Mon, 05 May 2003 15:01:48 GMT

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, so
you need to use <c:out> to get the value into a top-level variable.

Hen

On Mon, 5 May 2003, Brian Hart wrote:

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


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


Mime
View raw message