A friendly place for programming greenhorns!
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
Author
how to call a servlet from jsf managed bean?
lynn fann
Ranch Hand
Joined: Oct 15, 2006
Posts: 115
posted
May 27, 2009 02:54:57
0
i need to call a
servlet
"myServlet" from my managed bean, how do i do it?
thanks.
Lalit Bhatt
Ranch Hand
Joined: Dec 27, 2007
Posts: 69
posted
May 27, 2009 11:57:09
0
you can get the
ServletContext
from
FacesContext
and than dispatch the request
FacesContext
fc = FacesContext.getCurrentInstance();
ServletContext
sc = (
ServletContext
) fc.getExternalContext().getContext();
sc.getRequestDispatcher(url);
Java-JavaEE
Hibernate
Spring
Spring Roo
Web Applications
I agree. Here's the link:
http://aspose.com/file-tools
subject: how to call a servlet from jsf managed bean?
Similar Threads
How to call servlet from JSF ?
how to trigger a servlet from JSF
JSF Url Mapping (Newbie)
Accessing JSF sesson bean from a servlet
Calling a Managed Bean method from Servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter