GetParameter and GetAttribute in the Java EE and corresponding El expressions

Source: Internet
Author: User

Excerpted from http://blog.csdn.net/woshixuye/article/details/8027089

GetParameter

① gets all of the string types. such as xy in http://name.jsp?name=xy

② get parameter values passed by Post/get

③ used for client redirection, such as clicking a link or submitting a button, is used to receive data when using a form or URL redirection value

El expression corresponding to ④: ${param.attribute}


GetAttribute

① Gets the type is Object

② is used for server end multiplicity orientation, that is, the Getter/setter property in Sevlet using the forward function or struts. GetAttribute can only receive the value of the program with SetAttribute.

③session.getattribute () to get session

el expression corresponding to ④: ${attribute}

GetParameter and GetAttribute in the Java EE and corresponding El expressions

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.