• Post Reply Bookmark Topic Watch Topic
  • New Topic

404 and 500

 
Praful Thakare
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have two pages called
Error500.htm and
Error404.htm
I have to display these pages when respictive error occurs
there is some entry in web.xml which looks like
<error-page>
<error>...</error>
</error-page>
<location> ....</location>
...
but i m not able to do it correctly ,kindly help me out in this
regards
.Praful
 
Kirtikumar Puthran
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can display the error pages thus :
<error-page>
<error-code>404</error-code>
<location>/Error404.htm</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/Error500.htm</location>
</error-page>

This has to be included in your web.xml

Hope this helps.
Rgds.
Kirtikumar Puthran
 
Praful Thakare
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kirti
Thanx 4 ur reply and Time.
regards
..Praful
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!