File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
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: 3837

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: 3837

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <error-page> tag doesn't work