Possible Duplicate:
Difference between getAttribute() and getParameter()
I read parameter and attributes as two different topics in j2ee. But I am not able to realize the difference. Can any one clarify?
Possible Duplicate:
Difference between getAttribute() and getParameter()
I read parameter and attributes as two different topics in j2ee. But I am not able to realize the difference. Can any one clarify?
Parameters come from the client request. Example: http://google.com?q=1
Here q is a parameter.
Attributes are set by the server side. For example, you can set a session or request attribute called userId to indicate the current user.
Objects have attributes which basically is ,their data members. The operations defined on an object which are called as method in JAVA, have parameters in their parantheses, on these parameters the functions operate upon .