One thing you could do is always pass the bean, but set it to null
beforehand when not in debug mode.
Dan
> ----------
> From: Westland, Jonathan[SMTP:[EMAIL PROTECTED]]
> Reply To: Westland, Jonathan
> Sent: Wednesday, September 15, 1999 8:15 AM
> To: [EMAIL PROTECTED]
> Subject: Conditional use of <jsp:useBean>
>
> 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