Skip to main content

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

No replies
hantsy
Offline
Joined: 2006-12-10
Points: 0

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.