Friday January 02, 2004
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 in Java
at Jan 02 2004, 10:52:46 PM MST
10 Comments
Search This Site
Recent Entries
- How to build a Shot-Ski
- Bus Project Update
- Farewell to the 2011-2012 Ski Season
- Cruising around the Western Caribbean
- Spring Break!
- A Spectacular Trip to Stockholm and Madrid
- Comparing Web Frameworks and HTML5 with Play Scala at Jfokus 2012
- Play Framework 2.0 with Peter Hilton at Jfokus
- Secure JSON Services with Play Scala and SecureSocial
- My What's New in Spring 3.1 Presentation
Posted by Hani Suleiman on January 04, 2004 at 01: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 07:42 AM MST #
Posted by Jason Carreira on January 04, 2004 at 10:41 PM MST #
Posted by Matt Raible on January 05, 2004 at 06:33 AM MST #
Posted by Matthew Payne on January 20, 2004 at 07:14 PM MST #
Posted by Matt Raible on January 21, 2004 at 12:23 AM MST #
Posted by Pavankumar on April 26, 2005 at 11:55 PM MDT #
Posted by Pavankumar on April 26, 2005 at 11:58 PM MDT #
Posted by Pavankumar on April 27, 2005 at 12:00 AM MDT #
Posted by 139.87.162.58 on June 29, 2006 at 12:52 PM MDT #