Monday April 07, 2003
Cool JSTL Trick I didn't know this, but JSTL's Expression Language is smarter than I thought. It is actually able to interpret the following expression:
<c:when test="{bodyId == ('login' or 'about')}">
As you can plainly see, this is much easier than the long way I was writing my expressions:
<c:when test="{bodyId == 'login' or bodyId == 'about'}">
Cool! (I removed the $ before bodyId to make Velocity happy.)
Update: False alarm - this doesn't work like I'd hoped. The long way seems to be the only real way to make this logic work.
Posted in Java
at Apr 07 2003, 11:51:08 PM MDT
1 Comment
Search This Site
Recent Entries
- Wine Tasting in Napa Valley
- 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
Posted by Lance on April 08, 2003 at 07:01 AM MDT #