The difference between parameters and attributes

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?

+7
source share
2 answers

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.

+19
source

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.

+2
source

All Articles