Services | Updates | Contact
Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML
Setting Case Sensitivity in a Regular Expression
This section describes the method to set the patter is either case sensitive or not. Actually, by default the patter is
 
Data Manipulation Statements
Data Manipulation Statement is used to retrieve, insert, update and delete the records in a database. All database users
 
More Tutorials...


    Loan Information     Struts     Open Source

Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML

 
 
JSP

 
Comments
 
 

 

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.     

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>
   
    In jsp java codes are written between '<%' and '%>' tags. So it takes the following form : <%= Some Expression %> In this example we have use 
          <%="Java Developers Paradise"%>

                         

Facing Programming Problem?
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

69 comments so far (post your own) View All Comments Latest 10 Comments:

plz prepare the code for developing the jsp pages

Posted by vishnu on Thursday, 05.1.08 @ 19:23pm | #58311

m a beginner in jsp. I often face problem to code a jsp program properly. I unable to understand how should i make a jsp project and programs? Please guide me

Posted by sarika on Monday, 04.28.08 @ 11:46am | #58042

im a fresher .how to write jsp program?

Posted by jyothi on Wednesday, 02.20.08 @ 16:06pm | #49204

How to develop a jsp with a bean in the application scope

Posted by Abhinay on Saturday, 02.16.08 @ 19:57pm | #48618

Hi e1
im a beginer in java,i want 2 do projects practically want 2 gain hands on experience over the java tachnology... how should i proceed .plz guide me .i would appreciate ur help thruout.plz help me 2 get exposure 2 pratical as they do in companies thank u

Posted by java on Friday, 02.15.08 @ 07:21am | #48353

hai mustafa,
please contact this mail id,iam telling how to write the servlet code and how to execute the servlet program.ok bye.

Posted by srinath on Tuesday, 02.12.08 @ 03:30am | #47951

hai miss,iam working in vispro technologies.
jsp programs are very easy.u have any idea in html.html may be saved in .html extension.html may be used in design perpose.but jsp may be used in both design and server side actions.
in jsp form code will be written inscriptlets.
i didn.t have u,r id.please contact my id. iam sending some examoles.
ok good neight.

Posted by srinath on Tuesday, 02.12.08 @ 03:26am | #47950

html and jsp both are not same,html may be used in only design perpose but jsp may be used in both design and server side programs.please see some taglibraries in jsp and practise programs in jsp using tag libraries.tag libraries are importent in jsp.u have any doubts please contact this mail id. Good neight.

Posted by srinath on Tuesday, 02.12.08 @ 03:18am | #47949

Hi every one..plz help me...I wanna create a drop downmenu using jsp...and am using Macromedia Dreamweaver MX 2004...plz help me...i have done upto following...

<ul>
<INPUT TYPE="hidden" id="width12" name="width12" value="6"/>
<li style="cursor:hand"><a>CA...

<ul>


<li><a href="careeropps.jsp?prod... & PLACEMENT</a></li>

<li><a href="careeropps.jsp?prod... RESUME</a></li>

<li><a href="careerpps.jsp?prod=... OPENINGS</a></li>


</ul>
<INPUT TYPE="hidden" id="width12" name="width12" value="6"/>

I have done the above thing.....then if i go to design or if i run this file in Tomcat....it is showing as follows:

CAREERS

TRAINING & PLACEMENT

POST RESUME

CURRENT OPENINGS

so...what's wrong in my coding part....i wanna drop down menu...as...
if i move my cursor to the CAREERS..a drop down menu must appear with
TRAINING & PLACEMENT

POST RESUME

CURRENT OPENINGS
plz give me step by step coding..

Posted by sheri on Wednesday, 02.6.08 @ 13:26pm | #47396

hi every one i want to learn to jsp
in detailed in internal structures

Posted by jagadeesh on Saturday, 02.2.08 @ 09:29am | #46942

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.