Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Jsp Introduction to JSP

Related Tutorials


 
 

Share on Google+Share on Google+

Introduction to JSP

Advertisement
Introduction to JSP Introduction to JSP Java Server Pages or JSP for short is Sun's solution for developing dynamic web sites. JSP provide excellent server side scripting support for creating database driven web applications.

JSP Tutorials - Writing First JSP

                         

Java Server Pages or JSP for short is Sun's solution for developing dynamic web sites. JSP provide excellent server side scripting support for creating database driven web applications. JSP enable the developers to directly insert java code into jsp file, this makes the development process very simple and its maintenance also becomes very easy.  JSP pages are efficient, it loads into the web servers memory  on receiving the request very first time and the subsequent calls are served within a very short period of time. 

In today's environment most web sites servers dynamic pages based on user request. Database is very convenient way to store the data of users and other things. JDBC provide excellent database connectivity in heterogeneous database environment. Using JSP and JDBC its very easy to develop database driven web application. 

Java is known for its characteristic of "write once, run anywhere." JSP pages are platform independent. Your port your .jsp pages to any platform.

Check the Latest Version of this tutorial on "How to make my First JSP Page?"

Installing JSP

First of all download JavaServer Web Development Kit (JSWDK1.0.1) from http://java.sun.com/products/servlet/download.html. JSWDK comes with full documentation and it's very easy to install, so the installation process is not mentioned here. The JSWDK is the official reference implementation of the servlet 2.1 and JSP 1.0 specifications. It is used as a small stand-alone server for testing servlets and JSP pages before they are deployed to a full Web server that supports these technologies. It is free and reliable, but takes quite a bit of effort to install and configure.

Other Servers that support JSP

  • Apache Tomcat.
    Tomcat is the official reference implementation of the servlet 2.2 and JSP 1.1 specifications. It can be used as a small stand-alone server for testing servlets and JSP pages, or can be integrated into the Apache Web server. 
  • Allaire JRun.
    JRun is a servlet and JSP engine that can be plugged into Netscape Enterprise or FastTrack servers, IIS, Microsoft Personal Web Server, older versions of Apache, O?Reilly?s WebSite, or StarNine WebSTAR.
     
  • New Atlanta's ServletExec.
    ServletExec is a fast servlet and JSP engine that can be plugged into most popular Web servers for Solaris, Windows, MacOS, HP-UX and Linux. You can download and use it for free, but many of the advanced features and administration utilities are disabled until you purchase a license.
     
  • Gefion's LiteWebServer (LWS). LWS is a small free Web server that supports servlets version 2.2 and JSP 1.1.
     
  • GNU JSP. free, open source engine that can be installed on apache web server.
     
  • PolyJSP. PolyJsp is based on XML/XSL and has been designed to be extensible. Now supports WebL
     
  • JRUN. Available for IIS server.
  • WebSphere. IBM's WebSphere very large application server now implements JSP.

 

Developing first JSP

Java Server Pages are save with .jsp extension. Following code which generates a simple html page.   

Execute the example.

<html>
<head>
<title>
First JSP page.</title>
</head>
<body>
<p align=
"center"><font color="#FF0000" size="6"><%="Java Developers Paradise"%></font></p>
<p align=
"center"><font color="#800000" size="6"><%="Hello JSP"%> </font></p>
</body>
</html>

n jsp java codes are written between '<%' and '%>' tags. So it takes the following form : <% = Some Expression %> In this example we have used  <%="Java Developers Paradise"%>

               

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 23, 2004

Related Tutorials

Discuss: Introduction to JSP   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:30
astha jain
June 8, 2012
query

please give the explanations sequentially to the example given above...... so that the user could also get the knowledge of running the program accurately.............
gnana
June 15, 2012
jsp

its very helpful to learn the basics of jsp.....
nithya
July 3, 2012
ajax

i need a ajax code for updating the multiple values in the form.dynamically to display the value in browser window from the web server
vinay
July 9, 2012
jsp

Write a program using JSP that enables any student to change the medium of instruction of his/her programme of study. Make necessary assumptions.
Sanjay
July 27, 2012
Good One

THis is good tutoril i have found here..! THNKS
Arul velanganni
September 6, 2012
java

how to develop the program knowledge.how to learn the java in tutorial.
kumar gaurav
September 11, 2012
java server page creation

nothing
m.mugi
December 15, 2012
J2EE

GIVE ME MORE MAIL ALERTS ABOUT THIS CONCEPT TO LEARN IT BY MY SELF
Maruthi Reddy
April 2, 2013
request

sir, JSP better than Servlet or not?
DMCA.com