Two Laptop Bag*
The moose likes Websphere and the fly likes Intercept a 404 Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Intercept a 404 Error" Watch "Intercept a 404 Error" New topic
Author

Intercept a 404 Error

Elle Atechsy
Ranch Hand

Joined: Jan 23, 2004
Posts: 96
Hi,

Is it possible to intercept a 404 error and trigger a servlet from the web.xml file?

Thanks in advance,
Lulu
sanat
Ranch Hand

Joined: Dec 08, 2004
Posts: 111

Hi try thi

sanat
Ranch Hand

Joined: Dec 08, 2004
Posts: 111

Originally posted by sanat kumar padhy:
Hi try thi



use [error-page] [error-code]404 [location] /somemapping

hope this helps
 
Don't get me started about those stupid light bulbs.
 
subject: Intercept a 404 Error
 
Similar Threads
How do i correct this error
inputFileUpload - uploadMaxFileSize
Regarding tomcat
404 prob.
Url to app server