I'm using Spring MVC in my application, and i've decided to remove my JSP files from it and put in another context created in apache, that I called static.
Working with pure servlet I can forward a request to JSP page as following:
getServletConfig().getServletContext().getContext("/static").getRequestDispatcher("/test.jsp").forward(request, response);
But how can i configure this behaviour using Spring MVC, forcing it to look up for the JSP in this static context when i return a String in a RequestMapping method?
Aucun commentaire:
Enregistrer un commentaire