This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have my own Action classes that extend org.apache.struts.action.Action I understand that the Action class is a Servlet. Is it compulsory that all Servlets (Action class in this context) be thread-safe ? When multiple requests from multiple browsers hit the app server, the container will instantiate 1 servlet for each request right ? (and not many clients share 1 servlets - multi threads running 1 servlet, right ?) If it is always 1 servlet for each request (single thread running a servlet at any one time), then it it is ok even if the action class is not thread-safe ?
Joined: Oct 19, 2002
Ooppss... I think I cause confusion for my question. What I was talking was the Action class and not Action servlet.