• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rediction of Error page in Apache JServ

 
Mythili Durai
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<web-app>
<error-page>
<error-code>404</erro-code>
<location>/examples/jsp/ErrorPage.html</location>
</error-page>
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>/MyServlet</servlet>
</servlet>
</web-app>
This is what the settings i saw in this site to redirect the page to ErrorPage.html if a file is not found.
I have made the above settings to the web.xml file in the WEB-INF directory. But it has no effect on the site. What could be the problem?
Could anyone help me in this?
My directory structure is like this /home/oraias/product/9.1.0/jsp/webCNPPages
My application's jsp's are placed in webCNPPages directory.
I have placed the web.xml file inside, webCNPPages/WEB-INF/
Would this be correct. If not where should it be placed?
Can anyone help me?
 
Harshad Oak
Author
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The closing tag is incorrect. </erro-code>
This might be the cause.
cheers!
harshad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic