aspose file tools*
The moose likes JSF and the fly likes Please Help - Using JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Please Help - Using JSF" Watch "Please Help - Using JSF" New topic
Author

Please Help - Using JSF

Shanmu Arumugam
Greenhorn

Joined: Mar 22, 2006
Posts: 14
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

Joined: Mar 08, 2007
Posts: 1585
Hi,

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

Best of luck ...


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Shanmu Arumugam
Greenhorn

Joined: Mar 22, 2006
Posts: 14
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please Help - Using JSF