This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsf Request forward

 
rajesh babu Y
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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


Thanks,
Rajesh Yarlagadda
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17987
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic