aspose file tools*
The moose likes Servlets and the fly likes error-page with error-code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "error-page with error-code?" Watch "error-page with error-code?" New topic
Author

error-page with error-code?

Raghunath Nandyala
Ranch Hand

Joined: Jan 24, 2006
Posts: 64
HI

Im deploying one web application with web.xml in weblogic 8.1 as
<error-page>
<error-code>404</error-code>
<location>ErrorMessage.jsp</location>
</error-page>

The aim is to send error page to client if 404 error comes.
For this for first time we are requesting .. its working fine (http://localhost/AC/pagenotfound)
If we open one more browser and request same url it is giving "Page Can not be Found" Page you are looking might be removed,trmporarliy not available .. which is regular page from browser.

Please help me to regirect exact error page if i get 404 error code.

Thanks
Raghunath N


SCBCD,SCWCD,SCJP
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

The location needs a leading slash "/ErrorMessage.jsp".


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Raghunath Nandyala
Ranch Hand

Joined: Jan 24, 2006
Posts: 64
I tried in both the ways but no use.

Raghunath
Raghunath Nandyala
Ranch Hand

Joined: Jan 24, 2006
Posts: 64
Can any one help .. please.. ?
Raghunath Nandyala
Ranch Hand

Joined: Jan 24, 2006
Posts: 64
i got this

response.reset() need to call .. i dont know why .. any way its working ..

thanks,
raghunath
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error-page with error-code?
 
Similar Threads
how to trap 404 error
404 not found
How to hanfle error code 404
Problem configuring Error Page
process errors of user defined URL