I would say yes. A static variable is common for all the instances of the
class that contains it. But the User B will only see the change if the page
is sent to the browser after the varible changes

Fran.

> -----Mensaje original-----
> De:   Gardner Monte [SMTP:[EMAIL PROTECTED]]
> Enviado el:   martes 5 de febrero de 2002 1:29
> Para: [EMAIL PROTECTED]
> Asunto:       Static variables
>
> Hypothetical situation:
>   Say I have a class called Market as such
>
> Class Market
> {
>   static int price = 5;
> }
>
> and I have two different users using JSP pages that access the
> class Market.  If user A runs a JSP page that causes the Market.price
> variable to change, then shortly afterwards, User B runs a page that
> displays the value of Market.price, will the change that user A made be
> reflected on User B's page?
>
> --Monte Glenn Gardner
>
> ==========================================================================
> =
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to