webtier@glassfish.java.net

Re: How to force a none existing view to 404 error page.

From: Ed Burns <edward.burns_at_oracle.com>
Date: Wed, 16 Nov 2011 10:12:44 +0100

forums_at_java.net wrote:

I used Majarra 2.1.3, tomcat 7, Spring 3 in my project, when user tried to
accesss none existing page, for example

http://localhost:8080/fi/xxxx.faces

In fact, this page does not exist.

It will display a empty page, I opened firebug and it returned 200 code.

I have defined 404 error page in the web.xml, how to force it redirect to
404 page.






--
[Message sent by forum member 'hantsy']
View Post: http://forums.java.net/node/864571
Let me give that a try on tomcat7 and see what I can find out for you.