×

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 RequireJs Interview Questions for 2024

1) What is RequireJs? RequireJs is a open source JavaScript library which is used to maintain dependencies between JavaScript files and modular programming. 2) What are the features of RequireJs? Following are the...

3 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 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 15 ES6 Interview Questions for 2024

Commonly Asked ES6 Interview Questions and Answers 1) What is ES6? ES6 is a scripting language specification standardized. It is used to enable client-side scripting. The specification is influenced by programming languages (Self, Python, Perl,...

2 minutes read.

Top 31 PHP Interview Questions for 2024

1) What is PHP? PHP is a object-oriented scripting language, open source, interpreted and executed at server side. It is also used to develop web applications. 2) What are the features of PHP? Features...

4 minutes read.

Top 16 Arduino Interview Questions for 2024

1) What is Arduino? Arduino is an open source electronic platform. It is based on easy-to-use hardware and software. It able to read input signal. It is used to write and...

2 minutes read.

Polymer.js Interview Questions

1) What is Polymer.js? Polymer.js is an open source JavaScript library. It is developed by Google. It is used to develop web applications for using of web components like HTML. 2) Describe...

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 15 KnockoutJS Interview Questions for 2024

1) What is KnockoutJS? It is a JavaScript library which is based on MVVM pattern that helps developers in building rich and responsive websites. 2) Who is the author of KnockoutJS? Steve Sanderson is...

2 minutes read.

Top 15 Java Multithreading Interview Questions for 2024

1) What is Multithreading in Java ? It is a process of executing multiple threads simultaneously. It is used to achieve multitasking. It is mostly used in animation and games etc. 2) What are...

4 minutes read.

Top 15 XML Interview Questions for 2024

1) What is XML? XML (eXtensible Markup Language) is designed to transport and store data. It has user executive tags i.e. no pre-defined tags used as in HTML. This language is...

2 minutes read.

Top 20 C Programming | Coding Interview Questions for 2024

Most Frequently asked C programming | Coding Interview Questions and answer for Fresher C is a powerful high-level programming language.  It is a fast, portable and available for all platforms. C...

15 minutes read.

Top 28 LISP Interview Questions for 2024

1) What is LISP? LISP is the high-level programming language after Fortran. LISP is stands for List Processing. This programming language was invented by John McCarthy in 1958 at the Massachusetts Institute of...

3 minutes read.

Top 30 Flex Interview Questions for 2024

1) What is Flex? Flex is an open source framework which is used to build applications for mobile, browser and desktop. It provides FLEX SDK consisting of the Flex class library, Flex...

4 minutes read.

Top 15 NodeJS Interview Questions for 2024

1) What is NodeJs? NodeJs is open source JavaScript based feamework used to develop I/O intensive web application. It is collections of JavaScript library and runtime environment. It is used to...

3 minutes read.

Top 15 ASP.NET MVC Framework Interview Questions for 2024

1) What is ASP.NET MVC Framework? ASP.NET MVC framework is a software architecture pattern for developing web applications. It is used to split the application's implementation logic into three components: models,...

4 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 15 MATLAB Interview Questions for 2024

1) What is MATLAB? MATLAB (matrix laboratory) is fourth-generation programming language. It allows matrix manipulations, implementations of algorithm and many more. 2) Who developed MATLAB? MATLAB is developed by MathWorks. 3) In which language...

2 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 15 VBA Interview Questions for 2024

1) What is VBA? VBA stands for Visual Basic Application. It is an event-driven programming language. It is mainly used with Microsoft Office applications such as MS -Excel, MS-Word and MS-Access. 2)...

3 minutes read.