Hypothetical situation,
I have a java bean accessible from a JSP page using the <jsp:usebean> tag. The bean is declared to have "session" scope. This means that the bean's associated properties, etc. remain constant over the duration of the user's session and are "local" to that user.
Question:
If there are methods or variables defined inside the bean as "static", do those methods and variables retain the same values across different bean instances with "session" scope?
Example: User A and User B are each using a different instance of the bean mentioned above with session scope. If User A changes a property of the bean which internally is defined as static, will User B see the change?
Any help would greatly appreciated..
T
Does anyone know if a "static" method or variable declared in a java bean defined as having a "session" scope in JSP
I have a java bean accessible from a JSP page using the <jsp:usebean> tag. The bean is declared to have "session" scope. This means that the bean's associated properties, etc. remain constant over the duration of the user's session and are "local" to that user.
Question:
If there are methods or variables defined inside the bean as "static", do those methods and variables retain the same values across different bean instances with "session" scope?
Example: User A and User B are each using a different instance of the bean mentioned above with session scope. If User A changes a property of the bean which internally is defined as static, will User B see the change?
Any help would greatly appreciated..
T
Does anyone know if a "static" method or variable declared in a java bean defined as having a "session" scope in JSP