• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Rediction of Error page in Apache JServ

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Author
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The closing tag is incorrect. </erro-code>
This might be the cause.
cheers!
harshad
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic