This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL and booleans