Hi Mike,
My understanding is, if the bean instance does not exists, then it will be
created.Otherwise the the existing instance is used.
In your case also same is the answer.
-Ram
Mike Cannon-Brookes wrote:
> G'day guys,
>
> How can I work out if a bean has been instantiated?
>
> ie -
>
> fileA.jsp :
> <jsp:useBean id="MB" class="MyBean" scope="application"/>
> <%@ include file="fileB.jsp"%>
>
> fileB.jsp :
> <jsp:useBean id="MB" class="MyBean" scope="application"/>
>
> Sometimes fileB.jsp is included in a file where the bean has already been
> used, hence the variable exists. Othertimes, fileB will be the first to use
> the bean, and will hence create the pointer to it.
>
> Any ideas?
>
> Cheers,
> Mike
> __
> | | The BookmarkBox
> | | http://www.bookmarkbox.com
> |/\| Manage and share your bookmarks online!
>
> Have you seen our new forums? http://www.bookmarkbox.com/ubbcgi
> Share your bookmarking with others and get helpful tips!
>
> ===========================================================================
> 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