File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
diff between parameter and attribute
Joined: Jun 09, 2005
Aug 14, 2005 08:38:00
what is the difference between parameter and attribute
can anybody explain in detail
Joined: Aug 04, 2004
Aug 14, 2005 08:42:00
As I feel it parameter is always
and attribute is always Object.
SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Joined: May 12, 2004
Aug 15, 2005 07:57:00
Attribute defines a property of an Object, like you have init-param for
. These are like properties of the servlets, or
Parameter are like passed parameters to functions, pages (
Joined: Aug 16, 2005
Aug 16, 2005 15:50:00
Getting and Setting is also an important difference when talking about parameters and attributes.
parameters: we can only get parameters .. as I understand it .. we cannot set them.
attributes: we can get/set/remove the attributes.
attributes: get/set/remove allowed
Context -> ( Servlet Context )
parameters: are configured in DD. therefore can get but cannot set.
attributes: can get/set/remove.
Hope that helps
I agree. Here's the link:
subject: diff between parameter and attribute
Class Cast Exception while reading the int value from a session object
argument or parameter? attribute or property?
request.getAttribute vs request.getParameter
Difference between request parameter and request attribute
different between parameters and attributes
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015