Chapter 4. Using the Expression Language

printer-friendly version of this section  Print  e-mail this section  E-Mail  add a public, group or private note  Add Note  add a bookmark about this section  Add Bookmark    

JSTL: JSP Standard Tag Library Kick Start
By Jeff Heaton

Table of Contents


Chapter 4. Using the Expression Language

Programming languages use expressions to manipulate application data. Expressions resemble algebraic formulas in that they often specify mathematical transformations involving the program's variables. For example, the expression a+10 tells the program to evaluate the expression 10 added to a. This does not change the value of a; rather, the computer simply computes this sum and then performs some action based on that sum.

JSTL supports expressions through the use of two expression languages. JSTL includes support for scriptlet-based expressions, called rtexprvalue expressions. JSTL also introduces Expression Language (EL), which greatly simplifies expression handling in JSTL. The designers of JSTL assume that most programmers will use EL expressions and use rtexprvalues for more advanced purposes. This chapter will focus primarily on EL expressions, although we cover expressions using rtexprvalues as well. We begin by examining the tags that JSTL makes available for expression handling.


    printer-friendly version of this section  Print  e-mail this section  E-Mail  add a public, group or private note  Add Note  add a bookmark about this section  Add Bookmark    
    Top

    [0672324504/ch04]

     
     


    JSTL. JSP Standard Tag Library Kick Start
    JSTL: JSP Standard Tag Library Kick Start
    ISBN: 0672324504
    EAN: 2147483647
    Year: 2001
    Pages: 93
    Authors: Jeff Heaton

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net