Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
Introduction to JSP 
 

A JSP page is a web page that contains Java code along within the HTML tags. JSP application is used for developing dynamic web sites.

 

Introduction to JSP

                         

Java Server Pages or JSP is Sun's solution  used for developing dynamic web sites. JSP stands for Java Server Pages, a technology invented by Sun Microsystems to allow the easy creation of server side HTML pages.

A JSP page is a web page that contains Java code embeded within the HTML tags. 

JSP is used for developing dynamic web sites.

JSP is  used for developing user interfaces for web applications. It is used for creating database driven web applications. However it is recommended to use JSP only for developing user interface of web application.  

JSP can be used as both a kind of Dynamic HTML and a CGI replacement. But most of time it is simple HTML file saved with  jsp extension.

JSP scripting language is a high performance alternative to CGI scripts. It is used for creating dynamic web content  for a web applications.

JSP makes it easy to mix static HTML parts with dynamic Java servlet code. 

Syntax of JSP Tags

In JSP all the jsp tags begin with < and ends >. These tags allows to embed a huge amount of java code in the JSP Scriptlets.e.g.

Syntax of JSP scripting language:


<%

//java codes

%>

JSP Engine places these code in the _jspService() method. 

Variables available to the JSP Scriptlets are: request represents the clients request and is a subclass of HttpServletRequest.  
These variables are used to retrieve the data submitted along the request.

Example:

<%

//java codes

String endusers=null;
userName=request.getParameter("endusers");

%>

Download Source Code

                         

» View all related tutorials
Related Tags: c database security web com rest ant website data io connection user password word uri name using this tab check

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

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.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
Search Tutorials:

 

 
 

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

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

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

Copyright © 2008. All rights reserved.