Locale usersLocale = request.getLocale();
StringBuffer jspWithLocale = new StringBuffer();
if (request.getParameter("jsppage") != null) {
jspWithLocale.append(request.getParameter("jsppage"));
jspWithLocale.append("_");
jspWithLocale.append(usersLocale.toString());
jspWithLocale.append(jspExtension);
} else
jspWithLocale.append(defaultJSP);
response.setLocale(usersLocale);
getServletConfig().getServletContext()
.getRequestDispatcher(jspWithLocale.toString())
.forward(request,response);