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.

Struts tip o' the day ~ using bean:size

A co-worker turned me on to this one today - you can use <bean-el:size collection="${myForm.list}" id="listSize"/> to get the size of a collection and expose it as a pageContext variable. I've been looking for this sucker for years! Usually, I end up putting a getListSize() getter on my form to accomplish this, since none of the other tags (including JSTL) allow you to get the size of a collection.

Posted in Java at Sep 30 2003, 07:25:59 PM MDT 6 Comments
Comments:

..since none of the other tags (including JSTL) allow you to get the size of a collection.. if you can use JSTL1.1: have a look at the functions library (and there's more interesting stuff in there)

Posted by Yann Cebron on October 01, 2003 at 04:52 PM MDT #

If you just want to test for just size in JSTL, you can do something like this:
<c:if test=${bean.children[3] != null}>there are at least 4 children</c:if>
<c:if test=${bean.children[0] != null}>the children list is not empty</c:if>

Posted by Jacob Hookom on December 02, 2003 at 05:24 PM MST #

<c:if test=${bean.children[3] != null}>there are at least 4 children</c:if>
<c:if test=${bean.children[0] != null}>the children list is not empty</c:if>

Posted by Jacob Hookom on December 02, 2003 at 05:27 PM MST #

[Trackback] Glad I came across this the other day. It seems so obvious now, but I can‘t remember how many times I‘ve contorted pageContext.findAttribute and a type cast so I could call list.size() in a scriptlet. And of course, if I were using JS...

Posted by Bill Schneider's Weblog on September 04, 2005 at 02:10 PM MDT #

There's a nice way of doing this in JSTL that's described here: http://www.smartkey.co.uk/blogArticle.html?articleNumber=84

Posted by Steve on October 25, 2008 at 01:25 PM MDT #

@Steve This article has been written in 2003, i suppose Matt worked with JSTL 1.0, your solution (EL) is only available with JSTL 1.1.

Posted by Benoit Guerout on February 11, 2009 at 03:56 PM MST #

Post a Comment:
  • HTML Syntax: Allowed