• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
J Maheswary
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
Changing the web.xml to the following solved it:

 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!