users@javaserverfaces.java.net

Re: Forwarding a request to the Faces servlet

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Mon, 24 Mar 2008 07:01:46 -0700

Uwe Seimet wrote:
> Hello,
>
> I am trying to forward a request handled by my own servlet to the Faces
> servlet (Mojarra 1.2_08), but this leads to an error since the Faces
> context has not been set up.
> What is the recommended way to forward a request to the Faces servlet?
> Do I have to set up the Faces context myself, and how would I do it? I
> found code doing this for JSF 1.1, but not for 1.2.
> Any help is welcome, thank you.
>
If you forward the the FacesServlet, the FacesContext should be setup
for you
automatically (this is done in the FacesServlet.service() method).

Any chance you can post the forward URL and the mapping(s) for the
FacesServlet?
> Best regards Uwe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net
>
>