Re: Forwarding request to a different servlet

2023-08-16 Thread Andy Pont
Chris wrote... So it looks like the backend service IS being called, but rejecting the request because of the "UserAgent" object complaining about it. I would log the User-Agent header from the request in your front-end before the RequestDispatcher.forward() call, and if possible, also log

Re: Forwarding request to a different servlet

2023-08-15 Thread Christopher Schultz
Andy, On 8/15/23 03:32, Andy Pont wrote: Chris wrote… The .forward() should keep all request headers (and many other things) in-tact. You might want to log some things in plugins/whatever to see what is being done. You should be using the *same objects* your servlet got for the request

Re: Forwarding request to a different servlet

2023-08-15 Thread Andy Pont
Chris wrote… The .forward() should keep all request headers (and many other things) in-tact. You might want to log some things in plugins/whatever to see what is being done. You should be using the *same objects* your servlet got for the request and response when calling

Re: Forwarding request to a different servlet

2023-08-14 Thread Christopher Schultz
Andy, On 8/13/23 04:24, Andy Pont wrote: I wrote... Progress of sorts!  The request is now returning 302 instead of 404! Looking in the log files for the backend, it has a message that says “Robot requests must be rejected” and the 302 response is due to a redirect to a permission denied

Re: Forwarding request to a different servlet

2023-08-13 Thread Andy Pont
I wrote... Progress of sorts! The request is now returning 302 instead of 404! Looking in the log files for the backend, it has a message that says “Robot requests must be rejected” and the 302 response is due to a redirect to a permission denied page. My understanding was the .forward()

Re: Forwarding request to a different servlet

2023-08-11 Thread Andy Pont
Mark wrote... RequestDispatcher operates within a given ServletContext (web application). You are trying to do a cross-context dispatch - i.e. to another web application. To do this you will need to: - enable cross-context dispatch for the /plugins web application

Re: Forwarding request to a different servlet

2023-08-11 Thread Mark Thomas
RequestDispatcher operates within a given ServletContext (web application). You are trying to do a cross-context dispatch - i.e. to another web application. To do this you will need to: - enable cross-context dispatch for the /plugins web application

Re: Forwarding request to a different servlet

2023-08-11 Thread Terence M. Bandoian
Hi, Andy- I'd suggest looking at: ServletContext.getContext and comparing: ServletContext.getRequestDispatcher with ServletRequest.getRequestDispatcher Hope that helps. -Terence Bandoian On 8/11/2023 2:52 AM, Andy Pont wrote: Hello! We have a commercial application that runs under Tomcat

Forwarding request to a different servlet

2023-08-11 Thread Andy Pont
Hello! We have a commercial application that runs under Tomcat 8.5.65 (on Windows Server 2019). In the tomcat/webapps directory there are the following three directories (names changed): backend frontend ROOT The “frontend” directory contains the UI for the commercial application and is,