❮ Previous Next ❯

JSP Introduction

Like Servlet, JSP is another server side technology which is used to develop dynamic web application. Basically it represents the presentation logic of the web apllication.

JSP pages are easier to maintain than Servlet. Servlet adds HTML code inside Java code while JSP adds Java code inside HTML.

JSP is an extension to servlet because it provides some more functionality than servlet such as expression language, custom tags, jstl etc.

javaserver page1

A JSP page is nothing but of some HTML tags and JSP tags. In JSP page we can separate designing and development. I mean JSP separates presentation logic and business logic. Designing and updating JSP pages are very simple.

Example:index.jsp

<html>
<body>
<%
out.print("Welcome 2 java8s.com");
%>
</body>
</html>

Output

javaserver page

Why JSP

  1. JSP provides an easier way to code dynamic web pages.
  2. JSP does not require additional files like, java class files, web.xml etc
  3. Any change in the JSP code is handled by Web Container(Web server like Apache Tomcat), and doesn't require re-compilation.
  4. JSP pages can be directly accessed, and web.xml(deployment descriptor file) mapping is not required like in servlets.

Advantages of JSP

  1. Easy to maintain
  2. High Performance and Scalability
  3. Fast development
  4. It is platform independent.


❮ Previous Next ❯

Follow Us




  Tutorials

Popular Links

Contact Us

address Plot No-741,2ND Floor
Opp. Bhagabati Temple,Jayadev Vihar
      Bhubaneswar-751013
      Email: info@silantechnology.com
      Phone: 0674-2361252
address
39877, sundale dr, apt#101, Fremont, California 94538, USA
       Phone: +1(262)388-7619

facebook twitter google linked in

© 2018 Silan Technology. All Rights Reserved