[Logo]
Forums Register Login
when to use
hi,
when to use get or setAttribute
and when to use get or setParameter
pls help me out
deepak
Parameters can only be read. (ie request.getParammeter("string")) and will only return Strings. A parameter is the data sent to you from the web page.
Attributes can be read or written (request.getAttribute() and request.setAttribute()) and can hold objects. Attributes are a place holder for any extra data you would like to have associated with this request (eg figured data) but it is not allowed to interfere with the parameters passed from the client.
Does this cover it?
Dave.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 21, 2017 12:52:20.