A little EL Lovin' for the DisplayTag
Tim McCune submitted a patch for the Display Tag Library to add Expression Language support. I committed it today, along with a few other enhancements. You can read more on the displaytag-devel mailing list. Tim's patch was a nice clean approach to adding EL support. He just subclassed the existing tags and then evaluated the expressions. All I did to integrate was to create an "el" package under "tags" and added an additional .tld file. So there's really nothing that's taken away from the original tag library, and if you want EL support, you simply need to use the "*-el.tld" in your web.xml or change your URI to "http://jakarta.apache.org/taglibs/display-el". Of course, you'll need to include JSTL's JARs (standard.jar and jstl.jar) in your WEB-INF/lib to make this work. This patch included the ability to specify a titleKey attribute - a much asked-for feature.
I like Tim's approach so much, I might have to use it for Struts Menu. It's a slick way of supporting JSP 1.1 containers, and adding optional EL support for JSP 1.2 containers. I haven't had any feedback from the dev team, but hopefully this will make it into the next release.
Posted by Hani Suleiman on January 04, 2004 at 07:35 AM MST #
That being said, I'm sure you'll come back with some good reasons, so I say - please submit your patches and persuasive argument I'll take a look.
Posted by Matt Raible on January 04, 2004 at 01:42 PM MST #
Posted by Jason Carreira on January 05, 2004 at 04:41 AM MST #
Posted by Matt Raible on January 05, 2004 at 12:33 PM MST #
Posted by Matthew Payne on January 21, 2004 at 01:14 AM MST #
Posted by Matt Raible on January 21, 2004 at 06:23 AM MST #
Posted by Pavankumar on April 27, 2005 at 05:55 AM MDT #
Posted by Pavankumar on April 27, 2005 at 05:58 AM MDT #
Posted by Pavankumar on April 27, 2005 at 06:00 AM MDT #
Posted by 139.87.162.58 on June 29, 2006 at 06:52 PM MDT #