It's not a secret anymore!
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 REST with Spring (video course) this week in the Spring 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: 17276

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.

An IDE is no substitute for an Intelligent Developer.
wood burning stoves
subject: Jsf Request forward
It's not a secret anymore!