You can break an if block across two or more scriptlets. For example:
<%
if (myBooleanExpression) {
%>
Put JSP or HTML tags here...
<%
} // ending brace for if
%>
"Westland, Jonathan" wrote:
> Is there a way to conditionally use the <jsp:useBean> tag based upon
> run-time attributes?
>
> Ultimately, what I trying to do is to create a debug mode, where I can
> submit a request to a servlet, have processing done, and "redirect" (through
> the use of RequestDispatcher) to a JSP. When the request is redirected to a
> JSP, if the debug mode is active, the JSP will not execute the <jsp:useBean>
> tag.
>
> I have been unable to determine a means of accomplishing this, since the
> <jsp:useBean> tag cannot reside inside a scriplet, declaration, or any other
> form of <% %>.
>
> ===========================================================================
> 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
===========================================================================
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