I am new to Struts 2 and i am working on migrating Struts 1 code to Struts 2, where i have the scenario like, Action Servlet is extended and in the extended class "process" method, locale is been set in request as shown below,
public class TestServlet extends ActionServlet {
protected void process(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
Locale locale = Locale.ENGLISH;
locale = Locale.FRENCH;
request.setAttribute("_locales", locale);
super.process(request, response);
}
}
How can i migrate this change to work in struts 2. What is the equivalent approach for this in Struts 2?