Can anyone explain, if Struts Action classes are threadsafe in Struts 1.x.
- Does RequestProcessor creates new instance of ActionClass for every new request.
- Does it cache the Action classes and reuses it for subsequent requests?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It caches the instance of an Action class and reuses it for subsequent requests.
You can check out the code here: org.apache.struts.action.RequestProcessor.process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
So, they are not thread-safe.