Hey Paul,

There are essentially two ways:

1: Use the jakarta framework that the Jakarta JSTL implementation uses
itself. There are several classes there that allow you to evaluate EL.
2: Upgrade to a JSP 2.0 container. Tomcat 5 is such a container. This
container will automatically parse EL before passing it on to your tag.

1 has as plus that it works in older servers, but as downside that it
requires the Jakarta JSTL implementation.

Grtz,

Martin

> Hi,
>      I wish to call a custom tag, passing a dynamic value for its
> attribute. I retrieve the value thus:
>
> <c:set var="userid" value="${param.userid}"/>
>
> and I wish to call my custom tag passing 'userid' as an attribute.
> Curently I have:
>
> <my:execute userid="${userid}">
>
> but the literal string "${userid}" is passed into the handler. To
> acheive the desired results I could of course use:
>
> <my:execute userid="<%= request.getParameter("userid") %>">
>
> but that would mean embedding JSP, when I wish to encompass all logic in
> tags. Does anyone have any suggestions how I might pass the JSTL value,
> dynamically to the attribute of my custom tag please?
>
> Thanks
>
> Paul.
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to