Yes, but it’s clunky as hell, e.g.
<c:choose>
<c:when test="${condition1}">
...
</c:when>
<c:when test="${condition2}">
...
</c:when>
<c:otherwise>
...
</c:otherwise>
</c:choose>
More Related Contents:
- How to install JSTL? The absolute uri: http://java.sun.com/jstl/core cannot be resolved
- javax.el.PropertyNotFoundException: Property ‘foo’ not found on type com.example.Bean
- Collect and save submitted values of multiple dynamic HTML inputs back in servlet
- Evaluate empty or null JSTL c tags
- How to compare two object variables in EL expression language?
- How to access objects in EL expression language ${}
- javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Don’t know how to iterate over supplied “items” in
- How to concatenate a String in EL?
- Calculate total sum of all numbers in c:forEach loop
- How to call parameterized method from JSP using JSTL/EL
- How to nest an EL expression in another EL expression
- if…else within JSP or JSTL
- c:forEach throws javax.el.PropertyNotFoundException: Property ‘foo’ not found on type java.lang.String
- Enabling JavaServerPages Standard Tag Library (JSTL) in JSP
- Adding external resources (CSS/JavaScript/images etc) in JSP
- JSTL tags on JSP page do not work and appear plain in HTML page source
- Check a collection size with JSTL
- java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
- How to install JSTL? The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved [duplicate]
- How to access at request attributes in JSP?
- Selected value for JSP drop down using JSTL
- Make ${} operator XSS safe in Struts 2 (same as tapestry)
- Unicode characters in servlet application are shown as question marks
- Passing parameters to another JSP file using tag
- How to use relative paths without including the context root name?
- There is no Action mapped for namespace [/] and action name [login] associated with context path [/Struts2Test]
- How to evaluate a scriptlet variable in EL?
- Java Front Controller [duplicate]
- Session shared in between tabs
- Character encoding JSP -displayed wrong in JSP but not in URL: “á » á é » é”