Jsp-el-expression

Source: Internet
Author: User

First, El syntax and use

EL (Expression Language) is designed to make jsps easier to write.

1. Grammatical structure

${the Name property value of the domain object}

2, the Value method

Take value from small to large: page, request, session, application

If it is found, it will continue to look up if it is not found, and if it is not found, an empty string is displayed application

You can set the corresponding domain range (pagescope, Requestscope, Sessionscope, applicationscope) If you need to take a value that is scoped to the specified domain

3. Attention

The EL expression generally operates only on domain objects and cannot manipulate variables.

Second, El get parameters

  

Third, el-entity class

  

Iv. el-list Container

  

V. Collection of El-map

Vi.. El operation

1, two non-existent domain objects (numeric type) added, with a value of 0

    

2, a existence (numeric type), a non-existent sum, the value of the existence of the

    

3, non-numeric type of string addition, will be error

    

  

Jsp-el-expression

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.