At 4:07 PM -0800 3/26/04, Chan, Jim wrote:
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:

I am not sure of the rules for using EL in JSP 2.0, although the fact that you can use it in the page body (not in tags) makes me suspect that it would also be automatically supported in tags.


But before JSP 2.0, you may just want to have a look at how the Struts EL tags do it. I just borrowed the org.apache.strutsel.taglib.utils.EvalHelper class when I wanted to use the EL in my tags, and it was very easy.

Joe

--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin


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



Reply via email to