File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes c:if else? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "c:if else?" Watch "c:if else?" New topic
Author

c:if else?

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Is there a way to perform an else with a c:if or do you just have to provide a c:if with the opposite test?

Also, I thought I had it before, but is there a site with all the JSTL tags and depscriptions or how to use example for each tag? Similar to what ANT has on their site? I looked on the Jakarta site, but couldn't find it.

Thanks.


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Nevermind, I found some info on sun's site and I am using c:choose and c:when and c therwise. Seems to work.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61205
    
  66

Yeah, the choose/when/otherwise construct is a bit "wordy", but it's what I usually use.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: c:if else?