Difference between getattribute and getparameter1. getattribute is the attribute set by setattribute in JSP.
2. What parameter gets is string; what attribute gets is object.
3. request. the data transmitted by the getparameter () method is
There are a lot of information on the Internet, but they are all chaotic. Record points are used as a reference. Difference between getattribute and getparameter 1. getattribute is the attribute set by setattribute in JSP.
2. What parameter gets is
1. getattribute is the attribute set by setattribute in JSP.2. What parameter gets is string; what attribute gets is object.3. request. the data transmitted by the getparameter () method is transmitted from the Web Client to the Web server,
GetAttribute () methodSo far, we have introduced two methods to retrieve specific element nodes: getElementById () and getElementsByTagName. After finding the element, we can use the getAttribute () method to query the values of its various
Getattribute () method
● A document is a node tree.
● Nodes are divided into different types: Element nodes, attribute nodes, and text nodes.
● The getelementbyid () method returns an object that corresponds to a specific element node in the
GetAttribute () method
So far, we have introduced two methods to retrieve specific element nodes: getElementById () and getElementsByTagName. After finding the element, we can use the getAttribute () method to query the values of its various
A document is a node tree.
Nodes are divided into different types: Element nodes, attribute nodes, and text nodes.
The getelementbyid () method returns an object that corresponds to a specific element node in the document.
The getelementsbytagname ()
Request.getattribute (): Is the value of the variable set at request, with Request.setattribute ("name", "Your Own value"), to set the value,Request.getparameter (): Extract the parameters sent over such as: this pagehttp://community.csdn.net/Expert/
The GetAttribute () method is a Function. It has only one parameter--the name of the property you intend to query, and the following describes its specific useGetAttribute () methodSo far, We've introduced two ways to retrieve specific element nodes:
Request. the data transmitted by the getParameter () method is transmitted from the Web Client to the Web server, representing the HTTP request data; request. the data transmitted by the setAttribute () and getAttribute () methods only exists in the
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.