You are using jsp:useBean in all the pages?

If so the primary meaning of jsp:useBean is that it
first create an instance of Mybean.class and that
obviously calls constructor everytime it is
instantiated?? I think this might be your problem for
the repeated calls of the constructor.

Hope this helps

Cheers,
Venu

--- Deepak C S <[EMAIL PROTECTED]> wrote:
>  Hi ,
>
>         Im using a Bean with scope="session" as
> follows.
>
> <jsp:useBean id="test" scope="session"
> class="MyPack.Mybean"/>
>
> I am using the same bean in many JSP pages.
>
> The Bean has a constructor which I expect to be
> called Only once for a
> session created.
>
> But the Constructor is getting called for each JSP
> page I access.Im also
> using same 'id' value (in useBean tag) in all jsp
> pages.
>
> Im using tomcat3.2.1. Can anybody clarify ..where
> the Problem is??
>
> thanx in adv,
> deeps
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body:
> "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to