Possible duplicate:Difference between getAttribute () and getParameter ()
I read parameter and attributes as two different themes in j2ee. But I can not understand the difference. Can anyone clarify?
Parameters come from a client request. Example: http://google.com?q=1
Here q is a parameter.
Attributes are set on the server side. For example, you can set a session or request attribute called userId to indicate the current user.
Objects have attributes that are mostly members of their data. The operations defined on the object, which are called as a method in JAVA, have parameters in their brackets, functions act on these parameters.