Hi- I assume you are creating the bean within a JSP? If so, there is a scope
attribute. For what you describe, scope=session would seem appropriate. In this
case, each user has their own instance of the bean.
Hope this helps. cheers, -ted
giri punn wrote:
> I have a problem when more than one user is simultaniously accessing a bean.
>
> When a user clicks a "submit" button on my web page, the next page should
> return some data from the bean.
> But if more than one user is clicking "submit" at the same time, only one of
> them is getting the data from the bean
> and the others are getting null.
>
> Can some one help me with this problem?
>
> thanks,
> giri
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> 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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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