Hello Everyone,
I have an application which uses
JSP and
Servlets. The Servlet contains all the business logic and redirects to a JSP class depending upon the request.
Now currently the application is very slow as the JSP is quite big. So what I am trying to achieve is instead of compiling JSP by the container I want to place compiled JSP in my .ear file. This will fasten the process as the container now don't have to compile my JSP.
My query is.
I have all the JSP in src/main/webapp/privatejsp/jsp.
Using maven-jsp plugin I am compiling all the JSP which generates the class file under target/WEB-INF/classes/jsp/privatejsp/jsp
But the problem is how to tell servlet to redirect to a .class file which is residing at WEB-INF/classes/jsp/privatejsp/jsp.
Currently I have the following code for redirecting to a jsp but will I redirect to a .class file.
getServletContext.getRequestDispatcher("/privatejsp/jsp/jspfileName.jsp").forward(req, resp);
Thanks and Regards,
Akshat Thapliyal