Logo F2FInterview

JSP Interview Questions

Q   |   QA

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”);
Cookie killcook = new Cookie(“cook”,”value”);

In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: