File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSF page coming up blank when used with servlet filters... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "JSF page coming up blank when used with servlet filters..." Watch "JSF page coming up blank when used with servlet filters..." New topic
Author

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

J Maheswary
Greenhorn

Joined: Jun 14, 2006
Posts: 4
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

Joined: Jun 14, 2006
Posts: 4
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

Joined: Jun 14, 2006
Posts: 4
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

Joined: Jun 14, 2006
Posts: 4
Changing the web.xml to the following solved it:

Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
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


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSF page coming up blank when used with servlet filters...
 
Similar Threads
.jsp file becomes .jsf file?
security constraint with jsp forward
No Display
getting exception in JSF Tutorial of JR
invoking face servlet