• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mapping error pages

 
Sanjay Jadhav
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends..

i like to know where to put error pages.in my servlet i use res.setStatus(403)/res.sendError(403) and mapp it in web.xml with <error-code> and <location> but it does not work either.
i put my error page out of web-inf directory also try with putting inside web-inf directory.
reply...
 
Sanjay Jadhav
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ...
is there any body to slove this above problem.
reply to this at ealiest..
 
kettle
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the problem. There could be many reason why it is not working. Where is your servlet directory.
Please exaplain the error and your directory structure and cut and paste your web.xml lines.
Kettle
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kettle
Welcome to the JavaRanch! Please adjust your display name to meet
the JavaRanch Naming Policy. You can change it here.
Thanks!
and welcome to the JavaRanch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!