Introduction to JSP

Introduction to JSP:

JSP innovation is utilized to make web application simply like Servlet innovation. It can be thought of as an expansion to servlet on the grounds that it gives more usefulness than servlet, for example, Expression dialect, JSTL .

A JSP page comprises of HTML labels and JSP labels. The JSP pages are less demanding to keep up than servlet in light of the fact that we can isolate planning and advancement. It gives some extra components, for example, Expression Language, Custom Tag is an introduction to JSP.

Advantage of JSP:

1) Extension to Servlet
2) Easy to maintain
3) Fast Development
4) Less code than Servlet
Life cycle of a JSP Page:
  • Translation of JSP Page
  • Compilation of JSP Page
  • Class loading
  • Instantiation
  • Initialization
  • Request processing

Destroy As portrayed in the above outline, JSP page is converted into servlet by the assistance of JSP interpreter. The JSP interpreter is a piece of webserver that is mindful to make an interpretation of the JSP page into servlet. After that Servlet page is incorporated by the compiler and gets changed over into the class record. In addition, every one of the procedures that occurs in servlet is performed on JSP later like instatement, submitting reaction to the program and obliterate.

 Life Cycle of JSP Page:

JSP Life Cycle

  • servlet.jsp
  • servlet.jsp.tagext
javax.servlet.jsp package:
  1. JspPage
  2. HttpJspPage

Javax.servlet.jsp package:

  • JspWriter
  • PageContext
  • JspFactory
  • JspEngineInfo
  • JspException
  • JspError
Jsp Page interface:
All Servlet classes should be implements in Servlet interfaces and extends in to servlets.

Methods of JspPage interface:

  1. public void jspInit()
  2. public void jspDestroy()
Http JSP Page interface:

It is one cycle method in JSP and it extends the JSP interface page.

Method of HttpJspPage interface:

  1. public void _jspService()

It is conjured each time when ask for the JSP page goes to the holder. It is utilized to handle the demand. The underscore _ connotes that you can’t supersede this strategy.

Drop Us A Query

Trending Courses
  • Python and Django Online Training
  • Python is a dynamic interrupted language which is used in wide varieties of applications. It is very interactive object oriented and high-level programming language.

  • Tableau Online Training
  • Tableau is a Software company that caters interactive data visualization products that provide Business Intelligence services. The company’s Head Quarters is in Seattle, USA.

  • MicroStrategy Online Training
  • We people have been hearing the word Microstrategy over the past few years. But what is this Microstrategy? Why it’s needed? What is its advantage? Do you have all these questions

  • PEGA (PRPC) 7.3 Certification Online Training
  • Pega Systems Inc. is a Cambridge, Massachusetts based Software Company. It is known for developing software for Customer Relationship Management (CRM) and Business process Management (BPM).

  • Workday Online Training
  • Workday specialises in providing Human Capital Management, Financial Management and payroll in online domain.It is a major web based ERP software vendor.

  • Power BI Online Training
  • the need for analyzing the data is an important play major role. Because we are living in a place where we cannot find an application without big data.

100% Secure Payments. All major credit & debit cards accepted.