JSP Interview Questions and Answers

JSP Interview Questions and Answers

Java server pages (JSP) is a server side technology which is used to create web application.JSP consists of HTML and JSP tags. The JSP pages are easier to maintain than servlet because we can separate designing and development. It provides additional features like expression language,   tags, etc. It access to the family java APIs and JDBC API to access enterprise database.

What is JSP and why do we need it?

What are the life-cycle methods for a Jsp?

What is difference between hide comment and output comment?

What are different types of comments in JSP?

What are JSP implicit objects?

Which implicit object is not available in normal JSP pages?

Why use of scripting elements in JSP is discouraged?

How can we handle the exceptions in JSP?

How is JSP used in the MVC model?

What are the different scope values for the <jsp:useBean> tag?

What is the difference between ServletContext and PageContext?

What is EL in JSP?

What is basic differences between the JSP custom tags and java beans?

What is JSTL?

What are the types of JSTL tags?

What is JSP Custom Tag and what are it’s components?

Can we use JavaScript with JSP Pages?

What is difference between JspWriter and Servlet PrintWriter?