JSP Java Interview Questions – Set 05

Can a JSP page process HTML FORM data Yes. However, unlike Servlet, you are not required to implement HTTP-protocol specific methods like doGet() or doPost() within your JSP page. You can obtain the data for the FORM input elements via the request implicit object within a scriptlet or expression as. Is there a way to … Read more

JSP Java Interview Questions – Set 04

What are the life-cycle methods of JSP Life-cycle methods of the JSP are: jspInit(): The container calls the jspInit() to initialize the servlet instance. It is called before any other method, and is called only once for a servlet instance. _jspService(): The container calls the _jspservice() for each request and it passes the request and … Read more

JSP Java Interview Questions – Set 03

Name one advantage of JSP over Servlets Can contain HTML, JavaScript, XML and Java Code whereas Servlets can contain only Java Code, making JSPs more flexible and powerful than Servlets. However, Servlets have their own place in a J2EE application and cannot be ignored altogether. They have their strengths too which cannot be overseen. What … Read more

JSP Java Interview Questions – Set 02

What is JSP? JSP is a dynamic scripting capability for web pages that allows Java as well as a few special tags to be embedded into a web file (HTML/XML, etc). The suffix traditionally ends with .jsp to indicate to the web server that the file is a JSP files. JSP is a server side … Read more

JSP Java Interview Questions – Set 01

What is backing bean ? A JavaBeans component that corresponds to a JSP page that includes JavaServer Faces components. The backing bean defines properties for the components on the page and methods that perform processing for the component. This processing includes event handling, validation, and processing associated with navigation. What does web module contain?The web … Read more