Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error-page with error-code?

 
Raghunath Nandyala
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The location needs a leading slash "/ErrorMessage.jsp".
 
Raghunath Nandyala
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried in both the ways but no use.

Raghunath
 
Raghunath Nandyala
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one help .. please.. ?
 
Raghunath Nandyala
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got this

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

thanks,
raghunath
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic