| Author |
Getting confused between getAttributes() and setAttributes() of request objects
|
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 984
|
|
Getting confused between getAttributes() and setAttributes() of request objects
|
http://www.lifesbizzare.blogspot.com || OCJP:81%
|
 |
Devaka Cooray
Saloon Keeper
Joined: Jul 29, 2008
Posts: 2729
|
|
Please TellTheDetails - What is your confusion?
Have you ever checked the documentation of HttpServletRequest ?
|
Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
HELP me! -- Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 984
|
|
getattributes() and getparameters()
whats the difference between them?
getparameters are used to get parameter values
but whats with getAttributes() ,isnt it the same?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
|
|
There are no such methods as getattributes() and getparameters() -- they are getAttribute() and getParameter().
And they aren't even close to the same thing.
Request parameters are those submitted to a servlet as part of the request -- form values, for example.
Objects can be placed into request scope, also called scoped variables, with setAttribute() and retrieved with getAttribute() (or with the EL in JSPs).
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Mark E Hansen
Ranch Hand
Joined: Apr 01, 2009
Posts: 639
|
|
Vishal Hegde wrote:getattributes() and getparameters()
Well then, do you need to correct your topic's subject?
|
 |
 |
|
|
subject: Getting confused between getAttributes() and setAttributes() of request objects
|
|
|