aspose file tools*
The moose likes JSP and the fly likes JSTL and booleans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL and booleans" Watch "JSTL and booleans" New topic
Author

JSTL and booleans

Andrew Mcmurray
Ranch Hand

Joined: Sep 24, 2005
Posts: 188
Hi all

Can JSTL evaluate booleans. For example could I use a c:if with bean.something where the getSomething method or the bean returned true or false?

Thanks,

AMD
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Yes, you can.


Merrill
Consultant, Sima Solutions
Andrew Mcmurray
Ranch Hand

Joined: Sep 24, 2005
Posts: 188
Thanks so I am guessing that the getter in the bean has to be getSomething and not isSomething right?

AMD
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Actually, isSomething is the standard naming convention, although I believe getSomething will work also.
 
jQuery in Action, 2nd edition
 
subject: JSTL and booleans