I'm not using JSP 2.0, but I believe you can only use expression language
with standard tags supplied (JSTL).

Someone has created "expression language" enabled versions of the standard
Struts tags which are currently in the "contrib" area. Why not look at how
the standard struts tags were enabled for "expression language" and do the
same kind of thing for your custom tag.

Struts EL Tags:


http://cvs.apache.org/viewcvs.cgi/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/


Niall

----- Original Message ----- 
From: "Chan, Jim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 27, 2004 12:07 AM
Subject: Use JSP Expression Language in custom tags?


>
> Sorry this is not directly related to Struts, but is it possible to use
the
> expression language in custom tags?  I think you can, but I am not quite
> sure how to do it.  Do you get this for free by just upgrading to a JSP
2.0
> compliant server?  Or do I have to do something with the custom tags to
get
> this behaviour.  For example, I want to do my tag to get his behaviour:
>
> <car:model description="<%=
> ((Car)request.getAttribute("Honda")).getDescription()    %>" />
>
>    using the EL like this.
>
> <car:model description="${ Honda.description }" />
>
>



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

Reply via email to