member « Variable « JSP-Servlet Q&A





1. member variables in servlet    coderanch.com

2. Exception to the rule: don't declare member variables in servlets?    coderanch.com

Well since you have not declared any member variables, what's your question? I am concerned about the static variable though. If the whole JVM is reinstantiated you will get a new static variable, so I wouldn't expect that variable to be shared between instances since instances can be in different JVM, AFAIK. Perhaps you want to ask in a different forum ...

3. Exception to the rule: don't declare member variables in servlets?    coderanch.com

By the way, I originally posted this in Threads section, but according to Ernest Friedman-Hill: >>Indeed, this has nothing to do with threads that I can see. Moving to the Servlets forum. The post did not appear here so I am reposting. Let me just say that I feel my post has at least something to do with threads and that ...

4. member variable in servlet    coderanch.com