setting a null key in request.setAttribute() method
posted 8 years ago
Can anyone tell me what happens when we set a null key object e.g. request.setAttribute(null,new Integer(4)); in the request.setAttribute method in a jsp.Is there any exception thrown. I tried it and on the local machine no exception was thrown but when i tried to access the jsp remotely then an IllagalArgumentException was thrown. Please can anybody explain me the exact functionality of the request.setAttribute method.
Thanks in Advance. [ April 28, 2008: Message edited by: Saurabh Chaubey ]