Servlet Technical Questions
Posted on 2006-04-05
Ok. Here is the scenario....
I have two buttons on a Browser. Both buttons are attached to the same Servlet.
Say Button1, Button2
Button1 clicked - Set of data is transferred to the doPost(). Data is picked up in the doPost() and saved in a GLOBAL VARIABLE(s)
Now the Screen Referfhes
Button2 is Clicked - a Different set of data is transferred to the doPost(). Data is picked up in the doPost() and saved in a GLOBAL VARIABLE(s)
SO here are the questions...
1. Is the same Servlet instance in the Server-Side Container still exists when the second button is clicked? SO that the data I sent via the first click is NOT LOST when the second is clicked?
2. If a another user opens up a brower in his machine while I am working, and goes to the same program, will BOTH SHARE the
save Servlet instance or a different servert?