JSP Java Interview Questions – Set 10

What do you understand by client side and server side templating The modern Rich Internet Applications (RIA) use the design concept of “single page web design”, where a single rich page makes ajax based service calls to render different sections of a page instead of the traditional approach of loading a new page of each user action.The “single page web design” … Read more

JSP Java Interview Questions – Set 09

What types of comments are available in the JSP? There are two types of comments that are allowed in the JSP. They are hidden and output comments. A hidden comment does not appear in the generated HTML output, while output comments appear in the generated output. Example of hidden comment: < % – – This … Read more

JSP Java Interview Questions – Set 08

How do you restrict page errors display in the JSP page You first set “Errorpage” attribute of PAGE directory to the name of the error page (ie Errorpage=”error.jsp”)in your jsp page .Then in the error jsp page set “isErrorpage=TRUE”. When an error occur in your jsp page it will automatically call the error page. How … Read more

JSP Java Interview Questions – Set 07

How can I set a cookie and delete a cookie from within a JSP page Cookie mycook = new Cookie(“name”,”value”); response.addCookie(mycook); Cookie killmycook = new Cookie(“mycook”,”value”); killmycook.setMaxAge(0); killmycook.setPath(“/”); killmycook.addCookie(killmycook); What is JavaServer Pages Standard Tag Library (JSTL A tag library that encapsulates core functionality common to many JSP applications.JSTL has support for common, structural tasks … Read more

JSP Java Interview Questions – Set 06

What is JSP directive A JSP element that gives an instruction to the JSP container and is interpreted at translation time. How will you handle the runtime exception in your jsp page The errorPage attribute of the page directive can be used to catch run-time exceptions automatically and then forwarded to an error processing page. … Read more