• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF page coming up blank when used with servlet filters...

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

I have a JSF page, which shows up fine (in both IE and Firefox) in normal scenarios.

But as soon as I apply servlet filters on the faces extension, I get into trouble. So after setting up the filters, when I load the same page(s) in each of the browsers, the filters run fine in the background, but the page comes up blank (in both IE and FF).

Happening only with JSF / Faces pages.

Once I remove the filter mapping, the page loads up just fine.

Would appreciate any feedback on this. TIA!
 
J Maheswary
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
More info on the original post...

Platforms:
Tomcat 5.5.15
JSF/Faces - Sun RI 1.2
Servlet Spec: 2.4

Portion of the Web.xml code (after applying the filters onto the faces components):
 
J Maheswary
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Update:
In normal scenarios, where the filter does not redirect or forward the request, the JSF page IS GETTING loaded fine.

The problem (JSF page coming up blank) occurs only when the filter is redirecting or forwarding the request to another JSF page!

Again, thanks for your time!
 
J Maheswary
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Changing the web.xml to the following solved it:

 
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have the following code in my pre-processor filter (that checks the permission) and it works fine



show me your pre-process filter code
reply
    Bookmark Topic Watch Topic
  • New Topic