Hi, Both the ServletRequest and the ServletContext interfaces have methods for handling parameters, as well as attributes. The differences I can make out between them are as foll: * Parameters are read-only, while attributes are r/w * Parameters are persistent by default(web.xml), while attributes are persistent by choice(if needed, can be stored in a database, file etc.).
Any other thoughts/suggestions/differences/uses/enlightenments..... Thanks in advance, Prasanna. SCJP2 --------------------------------------------------------------------------- If I had eight hours to chop down a tree, I'd spend six sharpening my axe. -Abraham Lincoln --------------------------------------------------------------------------- [ March 06, 2002: Message edited by: Prasanna Wamanacharya ]
jason adam
Chicken Farmer ()
Ranch Hand
Joined: May 08, 2001
Posts: 1932
posted
0
Well, the obvious statement that parameters are Strings read from descriptors, where as an attribute can be any Object you choose to attach to the context/request.
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
The differences I can make out between them are as foll: * Parameters are read-only, while attributes are r/w * Parameters are persistent by default(web.xml), while attributes are persistent by choice(if needed, can be stored in a database, file etc.).
Just curious, where did you pick this up? Seems like I missed that section completely.... - satya
Just curious, where did you pick this up? Seems like I missed that section completely.... - satya
This is not related to any particular section of the objectives. I just had this thought while going through the API Docs.
Prasanna. SCJP2 --------------------------------------------------------------------------- If I had eight hours to chop down a tree, I'd spend six sharpening my axe. -Abraham Lincoln ---------------------------------------------------------------------------