aspose file tools
The moose likes JSF and the fly likes Jsf Request forward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » JSF
Bookmark "Jsf Request forward" Watch "Jsf Request forward" New topic

Jsf Request forward

rajesh babu Y
Ranch Hand

Joined: Nov 12, 2010
Posts: 31
Hi All,

how to bypass the request to Jsf controllers from a servlet?

Rajesh Yarlagadda
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16460

Welcome to the JavaRanch, Rajest!

I'm not sure what you mean here. The JSF controller is a servlet. The FacesServlet, in fact. To bypass it, just code a URL that doesn't match the servlet's URL selection pattern.

However, if you do, don't expect to be able to use the FacesContext, since FacesContext by the FacesServlet is constructed when a JSF request is processed and destroyed when the request has completed. So if you bypass FacesServlet, you won't have a FacesContext.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Jsf Request forward