Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

JSP Interview Questions and Answers

Test your skills through the online practice test: JSP Quiz Online Practice Test

Related differences

Related differences

JSF vs JSPJSP vs ServletsJSP vs ASP
PHP vs JSP

Ques 41. What is difference between custom JSP tags and beans?

  • A custom JSP tag has to be interpreted and run inside a JSP; a Java Bean does not.
  • A custom JSP tag has to extend the javax.servlet.jsp.tagext.Tag interface; a Java Bean does not.
  • A custom JSP tag might use other Java Beans to do its work, but the reverse is not true.

Is it helpful? Add Comment View Comments
 

Ques 42. What are the two kinds of comments in JSP and what's the difference between them ?

<%-- JSP Comment --%>
<!-- HTML Comment -->

Is it helpful? Add Comment View Comments
 

Ques 43. What is JSP technology?

he JavaServer Pages technology enables you to generate dynamic web content, such as HTML, DHTML, XHTML, and XML files, to include in a Web application. JSP files are one way to implement server-side dynamic page content. JSP files allow a Web server, such as Apache Tomcat, to add content dynamically to your HTML pages before they are sent to a requesting browser.
When you deploy a JSP file to a Web server that provides a servlet engine, it is preprocessed into a servlet that runs on the Web server. This is in contrast with client-side JavaScript™ (within SCRIPT tags), which is run in a browser. A JSP page is ideal for tasks that are better suited to execution on the server, such as accessing databases or calling Enterprise Java™ beans. You can create and edit a JSP file in the HTML editor by adding your own text and images using HTML, JSP tagging, or JavaScript, including Java source code inside of scriptlet tags. Typically, JSP files have the file extension .jsp. Additionally, the JSP specification suggests that JSP fragment files should have file extension .jspf. If this convention is not followed, the JSP validator will treat JSP fragments as regular standalone JSP files, and compilation errors might be reported.

Is it helpful? Add Comment View Comments
 

Ques 44. What is JSP page?

A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format such as HTML, SVG, WML, and XML, and JSP elements, which construct dynamic content.

Is it helpful? Add Comment View Comments
 

Ques 45. What are the implicit objects?

Implicit objects are objects that are created by the web container and contain information related to a particular request, page, or application. They are:
--request
--response
--pageContext
--session
--application
--out
--config
--page
--exception

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2024 WithoutBook