2015-12-24 18:12 GMT+03:00 Marc Boorshtein <mboorsht...@gmail.com>:
>>
>> You have to provide the actual source code.
>>
>> There is an example in the examples webapp that performs forwarding to
>> a JSP and it works,
>>
>> \webapps\examples\WEB-INF\classes\ServletToJsp.java
>>
>>
> So the good news is that I got it to work by getting rid of any of the
> methods that were overiding the implementation with a call to the child
> request.  Here's the links to the code that does NOT work : (I haven't
> checked in the working code yet):
>
> https://github.com/TremoloSecurity/OpenUnison/blob/1.0.6-Dev/unison/unison-server-core/src/main/java/com/tremolosecurity/proxy/ProxyRequest.java
>
> https://github.com/TremoloSecurity/OpenUnison/blob/1.0.6-Dev/unison/unison-server-core/src/main/java/com/tremolosecurity/embedd/LocalSessionRequest.java

Your request wrappers store their own reference to a
HttpServletRequest in addition to the one stored by the
ServletRequestWrapper class.


My guess is that your issue will be solved if you either override
ServletRequestWrapper.setRequest() to update your request field,  or
use ServletRequestWrapper.getRequest() method to access the wrapped
object, instead of storing it by yourself.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to