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
 
JSP 2.0 - New Features 
 

This article discussed new Features in JSP 2.0

 

Features of JSP 2.0

                          

JSP 2.0  is released with new promises. JSP 2.0 is an upgrade to JSP 1.2 with several new and interesting features. These features makes the life of web application developers and designers easier. 

The JavaServer Pages 2.0 Specification is fully backwards compatible with version 1.2. JSP 2.0 allows the developer to write script-free code without without declarations, scriptlets and expressions.

JSP 2.0 is released with the objective of making the life of Developers easy. Here is the new features of JSP 2.0:

  • Simple Expression Language (EL)
      
  • JSP Fragments
      
  • Simple Tag Handlers
      
  • Easy tags creation with .tag files
     
  • Easy Header and Footer template using the prelude and coda includes
      

With JSP 2.0 web develop has become easily and it also helps easily maintaining dynamic Web pages. Despite the fact the word "Java" appears in JavaServer Pages, with JSP 2.0 the developer can develop pages without learning Java programming language. Learning and using the features of JSP 2.0 is also very easy.

The description of the features is given below:

  1. Simple Expression Language(EL): Expression Language (EL), provides a way to simplify expressions in JSP. EL provides the ability to use run-time expressions outside JSP scripting elements. Scripting elements are those elements which is used to embed Java code inside the JSP file. Mostly it contains the logic of the program. Scripting elements have three subforms:
    • Declaration: The variables and methods are declared inside declaration. 
    • Scriptlets: The business logic of the program is written inside this. 
    • Expressions: output will be displayed by the expression. 

    Expression Language can be enabled in scriptfree JSP pages:

    1). By using a page directive: We can enable EL by using

    <%@ page isScriptingEnabled="true|false" isEnabled="true|false"%>

    2). By using an element of the deployment descriptor:

    <jsp-config>
        <jsp-property-group>
            <url-pattern>*.jsp</url-pattern>
            <el-enabled>true</el-enabled>
            <scripting-enabled>true</scripting-enabled>
        </jsp-property-group>
      </jsp-config>
     

  2. JSP Fragments: Jsp fragments is a new feature of JSP 2.0 which allows page author to create custom action fragments that can be invoked. The JSP fragments allows a portion of Jsp code to be encapsulated into a Java object that can be passed around and evaluated zero or more times. Methods for creating a JSP fragment:
    1). Providing the body of a <jsp:attribute>: 

    <% attribute name="attributeName" fragment="true">

    2). Providing the body of a tag invocation:
  3. Simple Tag Handlers: 
  4. Easy tags creation with .tag files: With the introduction of JSP 2.0, knowledge of Java is no longer a prerequisite to create a custom tag action. 
  5. Easy Header and Footer template using the prelude and coda includes

 With JSP 2.0 web development has become easy and it also helps in maintaining dynamic web pages easily. To learn JSP 2.0 there is no need to learn java.

 

                          

» View all related tutorials
Related Tags: c string stl io sed arguments type jstl boolean tag return ole this oo check js if boo ie with

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 

Current Comments

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

GOOD WEBSITE , CONCEPTS CLEARLY EXPLAINED !!!!!

Posted by SUBRAMANYA_VITTAL on Thursday, 06.12.08 @ 10:38am | #63087

how to server sidevalidations using jusp

Posted by parimala on Monday, 10.8.07 @ 14:56pm | #32474

Servlet and jsp does not contain main,
then what is the process for executing the methods in jsp?

Posted by radhi on Saturday, 07.28.07 @ 19:53pm | #22115

when to use hidden varibles ,ididnt understand it right,can u tell me with example
thanx

Posted by umesh on Wednesday, 04.11.07 @ 15:31pm | #13874

its good....

Posted by Satya Venkata on Thursday, 03.29.07 @ 22:31pm | #12939

download free book JSP

Posted by kyairi on Wednesday, 03.28.07 @ 09:50am | #12825

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.