• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Help - Using JSF

 
Shanmu Arumugam
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've been using JSF in my application. If the response is 404-FILE NOT FOUND then I've to show my custom Error page. I tried to use the following tag in my web.xml.
<error-page>
<error-code>404</error-code>
<location>/jsf/PageNotFound.jsp</location>
</error-page>

But it is not working. I'm not getting my custom error page. I created one sample application with JSPs and used the <error-page> tag in the DD, it works. But not in my JSF application.

Could some one please help me on this. Thanks in Advance.

- Shanmu
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is your deployment structure the same for both of your applications ?

Best of luck ...
 
Shanmu Arumugam
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing much in my sample application, just 2 JSPs and web.xml. So I've just used the <error-page> in the web.xml. But in my actual application I've declared so many stuffs like filters, <ejb-ref>, listeners etc.
thanks
Shanmu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic