webtier@glassfish.java.net

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

From: <forums_at_java.net>
Date: Wed, 16 Nov 2011 02:44:34 -0600 (CST)

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