Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to get servlet request forwarding to work in jetty?

Created https://github.com/eclipse/jetty.project/issues/1459

Please take a look when you are able to spare some time. Hope the test helps.

On Fri, Apr 7, 2017 at 10:39 AM, Chiranjib Bhattacharjee <chiranjib.egain@xxxxxxxxx> wrote:
Okay, I am facing the problem with only Asynchronous servlet, synchronous servlet works as expected. I will try to create a test case and attach accordingly.

On Thu, Apr 6, 2017 at 6:28 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Thu, Apr 6, 2017 at 2:12 PM, Chiranjib Bhattacharjee
<chiranjib.egain@xxxxxxxxx> wrote:
> Thanks for responding!
>
> Request to Servlet A goes like: /base/servletA?param1=val1
> I create a URL that looks like
> /base/servletB?param1=val1&param2=val2&param3=val3 and then invoke the
> forward operation as:
>
> getServletContext().getRequestDispatcher(url).forward(request, response);
>
> Request arrives at servletB (I can tell because I had the application on
> debug) but the request URI is set as: /base/servletA?param1=val1
> I hoped it'd be some sort of configuration but was unable to find anything.

We have exactly the same test in the test suite, and it passes cleanly.

If you can reproduce your issue, please pack a reproducible test case
and attach it to an issue at
https://github.com/eclipse/jetty.project/issues.

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top