• Post Reply Bookmark Topic Watch Topic
  • New Topic

when i try to handle the handle the status code it is returning null  RSS feed

 
Nitha Don
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i used request.getAttribute("javax.servlet.error.status_code"); in my jsp program but it is returning null.why it is returning null value iam not getting.If u have any information email to this nitha_sr@yahoo.com
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are getting a null because that request has no attribute stored under that name. Why dont you use getAttributeNames to discover the names that are actually there?
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!