This can be achieved using the <%jsp:param> tag.
When we need to include static resource during the translation time, the ‘<%@ include>’ is used.The JSP include is used when we need to have dynamic or static data at run time.
RequestDispatcher: server-side redirect with request and response objects.
sendRedirect : Client-side redirect with new request and response objects.
JSP handles runtime exceptions using errorPage attribute of page directive and also we need to specify isErrorPage=true if the current page is intended to URL redirecting of a JSP.
Cookie cook = new Cookie(“name”,”value”); response.addCookie(cook); Cookie killcook = new Cookie(“cook”,”value”); killcook.setMaxAge(0); killcook.setPath(“/”); killcook.addCookie(killcook);