The two methods have not been carefully differentiated. Have a problem before you go to study a bit, hereby summarize
A popular generalization. The difference is two points:
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 page http://community.csdn.net/Expert/topic/4633/4633804.xml?temp=.3488123
Request.getparameter ("temp") = = ". 3488123"
Request.getparameter is used to accept parameters from the Get method or the Post method
The getparameter can obtain the parameter values that the client sends to the server side.
GetAttribute can get the parameter value set by SetAttribute, which is equivalent to using getattribute to get a parameter that is defined by itself, not from the client.
Second, getparameter can only pass variables of type string, getattribute can pass vector.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The difference between Set/getattribute and Set/getparameter