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.
In which all ways a servlet can call a JSP page, and vice versa? I know one way. My interviewer said there are at least 4 ways (each) of doing this. Can someone elaborate the 4 ways? Also, what sort of interview questions can I expect on Servlets/JSP? TIA, - Manish
Hi Calling a jsp from a servlet: 1: HttpServletResponse.sendRedirect 2: RequestDispatcher.forward 3: RequestDispacther.include 4: maybee more? Calling a servlet from a jsp: the 3 ways mentioned above(since a jsp gets translated to a servlet) plus <jsp:include page="/myServlet"> <jsp:forward page="/myServlet"> <%@ include file="/myServlet" %> Those are the ways I know, (I haven't tried out the code thought) Hope this helps Dominic