• Post Reply Bookmark Topic Watch Topic
  • New Topic

handle 404 error

 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i have configured the following code to catch 404 error, and i have context root "/"

<error-page>
<error-code>404</error-code>
<location>/error.jsp</location>
</error-page>

when i type in some page does not exist like this http://localhost:8080/error.jasfeee, i got the error page

however , if i type in http://localhost:8080/error.jasfeee/asfe, i got the error page, but the page style was totally messed up. can anyone give me some suggestion?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the styles are messed up, the most likely culprit is the stylesheets, no?

Are you using valid URLs to reference the style sheets? Or just relying on page-relative URLs?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!