×

Top 15 JSP Interview Questions for 2024

1) What is JSP?

It is a technology which is used to create web application like Servlet technology. It provides more functionality than Servlet. It consists of HTML and JSP tags.

2) What are the advantages of JSP over Servlet ?

Advantages of JSP over Servlet are:
  • It is easy to maintain
  • Extension to Servlet technology
  • The code is less in JSP than Servlet
  • There is no need to recompile and redeploy in JSP

3) What are the JSP implicit objects ?

JSP implicit objects:
  • out
  • request
  • response
  • config
  • application
  • session
  • pageContext
  • page
  • exception

4) What are the JSP lifecycle phases?

JSP lifecycle phases are:
  • Translation
  • Compilation
  • Classloading
  • Instantiation
  • Initialization
  • Request Processing
  • Destroy

5) What are the types of JSTL tags?

There are Five types of JSTL tags:
  • Core tags
  • Formatting tags
  • Function tags
  • XML tags
  • SQL tags

6) What are the types of JSP Scripting elements?

JSP scripting elements :
  • Scriptlet tag
  • Expression tag
  • Declaration tag

7) What are the attributes of JSP page directives?

Attributes of JSP page directives are:
  • import
  • contentType
  • extends
  • info
  • buffer
  • language
  • isELIgnored
  • isThreadSafe
  • autoFlush
  • session
  • pageEncoding
  • errorPage
  • isErrorPage

8) What are the types of JSP actions?

There are six types of JSP actions:
<jsp:include>
<jsp:forward>
<jsp:plugin>
<jsp:usebean>
<jsp:setProperty>
<jsp:getProperty>

9) What is the use of import attribute in JSP?

It is used to import class, interfaces and several packages. Example of import:
<html>    
<body>    
<%@ page import="java.util.Date" %>    
Today is: <%= new Date() %>    
  </body>    
</html>

10) What is the use of info attribute in JSP?

It is used to set the information of the JSP page. This information is retrieved later by using getServletInfo() method. Example of info:
<html>    
<body>    
 <%@ page info="Example made by TutorialandExample " %>    
Today is: <%= new java.util.Date() %>    
 </body>    
</html>

11) How can we pass the information from one JSP to another JSP page?

The tag <jsp:param> is used to pass information from one JSP to another JSP page.

12) What are the various scope values of <jsp:useBean> tag?

Scope values of <jsp:useBean> tag are:
  • application
  • request
  • page
  • session

13) What are the ways to include the result of another page?

There are two ways to include the result of another page are:
  • By the use of include directive
  • By the use of include action

14) Which directive is used in JSP custom tag?

The JSP taglib directive is used in JSP custom tag.

15) What are the tags used in JSP bean development?

There are three types of tags used in bean development are:
  • jsp:useBean
  • jsp:setProperty
  • jsp:getProperty

Related Topics

Top 15 CSS Buttons Interview Questions for 2024

1) What is CSS buttons? CSS buttons is used to create awesome button. It provides huge collection of CSS library files. 2) What are the CSS libraries to create buttons? There are following...

5 minutes read.

Top 31 CakePHP Interview Questions for 2024

1) What is CakePHP? CakePHP is an open-source PHP framework. It is used to develop dynamic web applications. It helps to developers to work in a structured manner. 2) When cakePHP was...

5 minutes read.

Top 30 CodeIgniter interview Questions for 2024

1) What is CodeIgniter? CodeIgniter is an open source PHP framework. It is used to develop web applications and websites. It is loosely based on MVC pattern and easy to use...

4 minutes read.

Top 25 MySQL Interview Questions for 2024

1) What is MySQL? MySql is defined as multi-user DBMS which is built and distributed my MySQLab now acquired by Oracle Co. 2) Enlist the features of MySQL. Cross-Platform Support Wide range...

3 minutes read.

Top 14 Material Design Lite Interview Questions for 2024

1) What is Material Design Lite? Material Design Lite is UI component Library. It is created with CSS, JavaScript and HTML. It is used for design purpose. It is developed by...

3 minutes read.

Symfony PHP Framework Interview Questions

1) What is Symfony? Symfony is an open source, web application framework. It is written in PHP and used to design PHP applications. It was first released on18 October, 2005. 2) What...

5 minutes read.

Top 32 Laravel Interview Questions for 2024

1) What is Laravel? Laravel is an open source PHP framework. It is used to design and develop web applications. It is based on MVC (Model-View-Controller) design pattern. It is created by Taylor...

6 minutes read.

Top 15 Highcharts Interview Questions for 2024

1) What is Highcharts? Highcharts is a JavaScript based charting library. It is used to enhance web applications by adding interactive charting capability. Highcharts supports a wide range of charts. Charts are drawn using...

2 minutes read.

Flutter Interview Questions

Here’s a list of top Flutter questions that are frequently asked. Q1.  Is Flutter an open-source? A1.  Yes, Flutter is a 100% open-source software development kit. Q2.  What are flutter widgets? A2.  Widgets are...

7 minutes read.

Top 28 Firebase Interview Questions for 2024

1) What is Firebase? Firebase is a platform which is used for building Web, IOS and Android applications. It offers: Real time database Different APIs Multiple authentication types and Hosting platform 2) What are the features of...

3 minutes read.

Top 13 SAS Interview Questions for 2024

1. What is SAS and its functions? SAS (Statistical Analysis System) is statistical software designed by SAS Institute in 1960 for data inspection and report writing. SAS runs on Windows, UNIX...

5 minutes read.

C++ | C Plus Plus Interview Questions for 2024

1) Write a program in C++ to print "Hello World"? #include <iostream.h>     #include <conio.h>   void main()    {       clrscr();       cout << "Hello World";     getch();     } 2) Write a program in C++ to enter two integers and find their sum and average ? #include <iostream.h>   #include <conio.h>   void main()   {   clrscr();   int x,y;   float sum,average;   cout << "Enter 2 integers : " << endl;   cin>>x>>y;   sum=x+y;   average=sum/2;   cout <<"The sum is:"<< sum << endl;   cout <<"The average is:"<< average << endl;   getch();   } 3) Write a program in...

5 minutes read.

Top 15 Ext Js Interview Question for 2024

1) What is Ext Js? Ext Js refers to Extended JavaScript. Ext JS is a JavaScript framework used to built interactive cross platform web application. 2) What are the features of Ext...

3 minutes read.

Top 15 PostgreSQL Interview Questions for 2024

1) What is PostgreSQL? PostgreSQL is a most advance open source database system. PostgreSQL is an object Oriented Relational Database Management System (ORDBMS). PostgreSQL source code is available free of charge...

3 minutes read.

Top 16 Yii PHP Framework Interview Questions for 2024

1) What is Yii Framework? Yii is an open source, web application framework based on MVC. It is written in PHP and used to design PHP applications. This application was started...

4 minutes read.

Django Interview Questions for 2024

Django is an open-source python web framework. It is very popular due to the functionalities it offers. It uses the Model-View-Template architecture. Many giant organizations are using Django as their...

10 minutes read.

Top 30 D Programming Language Interview Questions for 2024

1) What is D programming language? D programming language is an object oriented programming language. It is created by Walter Bright of Digital Mars. It was released in 2001. 2) Who is the...

4 minutes read.

Top 30 SQL Interview Questions for 2024

1. What is SQL? Ans. SQL stands for Structured Query Language.  It is a standard computer language for accessing, storing, and manipulating data stored in the relational database. SQL become an International Standard Organization (ISO)...

11 minutes read.

Top 10 GWT Interview Questions for 2024

1) What is Google Web Toolkit (GWT)? GWT (Google Web Toolkit) is a development toolkit. It is used to develop Ajax web applications using Java. GWT compiler translates Java sour ce...

2 minutes read.

Top 15 Java JDBC Interview Questions for 2024

1) What are the types of JDBC Drivers in Java? JDBC Drivers are of four types are: JDBC-ODBC bridge driver Native-API driver Network Protocol driver Thin driver 2) What are the five...

4 minutes read.