This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have many JSP pages. Each page includes a Login Validation JSP page that would verify the user's idle time. If the user is idle for more than 5 minutes, he will be forced to login again. I have a Servlet, that is called from one of the JSP's. How can the Login Validation JSP page be included in the Servlet? eg., These are the files that I have A.JSP, LoginValidate.JSP and Servlet1 A.JSP ----- ..... ..... <%@include file = "LoginValidate.jsp"%> ..... How can the same jsp page be included in Servlet1? Any suggestions please. Thanks
you can use the requestdispatcher to include any jsp along with the request and response object as below: getServletConfig().getServletContext().getRequestDispatcher("/directory/jspname that you want to include").include(request,response);