*
The moose likes JSP and the fly likes <error-page> tag doesn't work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "<error-page> tag doesn Watch "<error-page> tag doesn New topic
Author

<error-page> tag doesn't work

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237


this is my web.xml
when i type
http://localhost:8080/New/welcome.jsp on browser it gives welcomejsp
but when i type http://localhost:8080/New/abc.jsp
it doesn't go to notFoundError.jsp
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

anarkali perera wrote:when i type
http://localhost:8080/New/welcome.jsp on browser it gives welcomejsp
but when i type http://localhost:8080/New/abc.jsp
it doesn't go to notFoundError.jsp

What does it give?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the localhost:8080 home page, and then look for links to the information you want.
Click the Back button to try another link.
Click Search to look for information on the Internet.



HTTP 404 - File not found
Internet Explorer
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

You should untick the option "show friendly HTTP error messages" options under internet options' advanced tab in IE. That will enable the custom error pages.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: <error-page> tag doesn't work
 
Similar Threads
Not able to run sample servlet + jsp
java.lang.NullPointerException on a jsp page
welcome page not comming
Getting error while upgrading my running application from jboss-4.2.1.GA to jboss-6.0.0.Final.
he doesn't ask for authenticate