Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsf Request forward

 
rajesh babu Y
Ranch Hand
Posts: 32
  • 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
Posts: 18302
56
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