This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 3816

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

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
 
Similar Threads
Not able to run sample servlet + jsp
Getting error while upgrading my running application from jboss-4.2.1.GA to jboss-6.0.0.Final.
welcome page not comming
java.lang.NullPointerException on a jsp page
he doesn't ask for authenticate