Matt RaibleMatt Raible is a Web Developer and Java Champion. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

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
Comments:

Hmm, I've been pondering submitting patches to make displaytag webwork aware, any interest in this? The approach would be similar, a different taglib and an expression evaluator.

Posted by Hani Suleiman on January 04, 2004 at 07:35 AM MST #

I'm curious to know why the displaytag needs to be WW aware? Right now, it's not tied to anything but a couple of commons jars. You just pass it a collection and it'll iterate through it.

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 #

It would be nice if the EL was pluggable, so we could make it use the WW 1.x EL or Ognl (which we use in WW2 and Tapestry also uses)

Posted by Jason Carreira on January 05, 2004 at 04:41 AM MST #

Since I personally have no need for Ognl support, and OS is all about scratching itches, feel free to submit a patch? ;-)

Posted by Matt Raible on January 05, 2004 at 12:33 PM MST #

I pulled this out of cvs. There are a couple of kinks to work out still. If you never set <!-- Define the basename for a resource bundle for I18N --> <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> <param-value>ApplicationResources</param-value> </context-param> It crashes around line 193 in el/ColumnTag.java. Also, the "grouping" examples are currently having problems. Matt

Posted by Matthew Payne on January 21, 2004 at 01:14 AM MST #

Good to know - thanks Matthew. I'll try to fix the first bug, I don't have a clue about the 2nd.

Posted by Matt Raible on January 21, 2004 at 06:23 AM MST #

Hey someone help me in making the display tag work for me I am fetching the data from database into an arraylist. Now i want to pass this arraylist to displaytag. what I did is al = getData(); // al is an object of arraylist which holds data from getData request.setAttribute("results",al); <displaytag name="$(results)" > ... </displaytag> I am not able to display the desired data that is in Array List some one please help me in making this success

Posted by Pavankumar on April 27, 2005 at 05:55 AM MDT #

Hey someone help me in making the display tag work for me I am fetching the data from database into an arraylist. Now i want to pass this arraylist to displaytag. what I did is al = getData(); // al is an object of arraylist which holds data from getData method request.setAttribute("results",al); <displaytag name="$(results)" > ... </displaytag> I am not able to display the desired data that is in Array List some one please help me in making this success

Posted by Pavankumar on April 27, 2005 at 05:58 AM MDT #

Hey someone help me in making the display tag work for me I am fetching the data from database into an arraylist. Now i want to pass this arraylist to displaytag. what I did is al = getData(); // al is an object of arraylist which holds data from getData method request.setAttribute("results",al); displaytag name="$(results)" ... I am not able to display the desired data that is in Array List some one please help me in making this success

Posted by Pavankumar on April 27, 2005 at 06:00 AM MDT #

nh

Posted by 139.87.162.58 on June 29, 2006 at 06:52 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed