null pointer exception in setting response header in servlet

Posted by Bunny Rabbit on Stack Overflow See other posts from Stack Overflow or by Bunny Rabbit
Published on 2010-04-01T17:20:39Z Indexed on 2010/04/01 17:23 UTC
Read the original article Hit count: 242

response.setHeader(keys[i].toString(),value);

in a servlet is throwing null pointer exception even though none of keys[i] or value are null why is it so?

© Stack Overflow or respective owner

Related posts about java

Related posts about servlets