This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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
 
It's not a secret anymore!