Balu Sadhasivam wrote:
Harshana,
What does ServletRequest getAttribute returns ?
Spec says,
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
So it means if we set an object as a attribute we need to cast because return type is Object.
Do we still need to cast as (
String) if we set a attribute as a string?
Thank you guys.