How can i avoid 404 error in request and responce object. and forward it to user define page.
posted 12 years ago
i want that if the end user give wrong url, then instead of giving 404 error it must display user define page. how can i come to know from request and response objects that the server has thrown 404 error.
You can't as such, since you only get access to the request and response when the server finds the resource. But, you can define your own 404 page in the web.xml and then do your own processing there. Is this what you're looking for?