Craig wrote:

> Also, of course, there is no <if> tag in JSP 1.0 -- you'd need to implement this
> with scriptlets:
>
>     <% if (btest) { %>
>         <jsp:include page="true.jsp" flush="true" />
>     <% } else { %>
>         <jsp:include page="false.jsp" flush="true" />
>     <% } %>

Or take advantage of request-time expression evaluation and reduce it further:
<jsp:include page='<%= btest + ".jsp" %>' flush="true" />

More generalized:
<jsp:include page='<%= btest ? "truePage.jsp" : "falsePage.jsp" %>' flush="true" />

Cheers,

Wes

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to