I assume you get the RequestDispatcher from the ServletContext. This
RD is the original one from the servlet container and as such it
doesn't know about the servlets you specified in your module.

One the other hand if you get the RD from the Request that one is
special (enhanced) and it does know about the servlets you specified
in your module. Try with getting RD from the request.

Cheers
Alen

On May 27, 4:49 pm, Steve <[email protected]> wrote:
> Hey Guys,
>
> I've seen in another post:
>
> http://groups.google.com/group/google-guice/browse_thread/thread/f06a...
>
> that there is an issue forwarding with JSPs. I am having an issue
> forwarding from one servlet to another.
>
> I have migrated my servlet to Guice like so:
>
>    serve("/download").with(DownloadServlet.class);
>
> from web.xml:
>
>     <servlet-mapping>
>         <servlet-name>DownloadServlet</servlet-name>
>         <url-pattern>/download/*</url-pattern>
>     </servlet-mapping>
>
> But when I forward (using getRequestDispatcher) to this servlet in
> Guice I'm getting a 404, it works fine when in web.xml.
>
> I had the servlet forwarding issue outlined in the discussion above,
> and used tchan's "hack" and it solved the jsp forwarding issue, but
> I'm stumped on this. Any ideas? Is the "/download/*" pattern in the
> web.xml significant in it's difference from the way it is served with
> Guice?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to