• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Please Help - Using JSF

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Do not set lab on fire. Or this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic