Expression Language, expressionlanguage

Source: Internet
Author: User
Tags tld

Expression Language, expressionlanguage

If EL cannot find the attribute, "" is returned.

Page -- request --- session --- application

-------------------------------

Get the java object type through EL

$ {Pagination. person. name }== pageContext. getAttribute ("person"). getName ();

$ {Pagination. person. age}

 

 

EL operation List

$ {Pagination. list [1]}: 2nd Elements

 

EL operation Map

$ {Pagination. map. key}

$ {Pagination. map ["key"]}

 

----------------------------

EL function library

Custom:

1. Write java classes and provide static methods

2. Write a tld file and define the function description in the tld file.

 

Official EL function library in JSTL

Import jstl. jar

Introduce the library namespace in the jsp page

Http://java.sun.com/jsp/jstl/funcionts prefix = "fn"

 

--------------------------

Jstl is divided into five categories

Core

Fmt Internationalization

SQL database

Xml XML

Fn EL function library

Both database operations and xml operations write the code into the Servlet.

 

Each tag library jar package has/META-INF corresponding to a tld file, called the tag library definition file


Translate the following (Computer Document)

The "executable" attribute can restrict the running of JSF processes only in specific components. The "executable" attribute can point to the ID of the component to be executed. The component can also be identified by Expression Language (EL.
In addition, the "executable" attribute also recognizes the following keywords:

Translate the following (Computer Document)

The "executable" attribute can restrict the running of JSF processes only in specific components. The "executable" attribute can point to the ID of the component to be executed. The component can also be identified by Expression Language (EL.
In addition, the "executable" attribute also recognizes the following keywords:

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.