struts-user  

Use JSP Expression Language in custom tags?

Chan, Jim
Fri, 26 Mar 2004 16:08:34 -0800

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 }" />

  • Use JSP Expression Language in custom tags? Chan, Jim