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
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
Search This Site
Recent Entries
- What's Next
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
Posted by Lance on April 08, 2003 at 07:01 AM MDT #