Yes I also need to keep headers derived from included/forwarded servlet Thank you Tim, I already thought your solution and it should work, but it is a bit tricky I was wondering if there is a more elegant solution
I'm not strictly bound to forward method if there is a better solution Il Mar 29 Set 2020, 20:34 Tim Funk <funk...@apache.org> ha scritto: > Forward needed to be used due to this in the original email > > > I also tried using RequestDispatcher#include but I need to keep response > > headers, added during the forward > > And include() is not allowed to set headers. > > -Tim > > On Tue, Sep 29, 2020 at 2:27 PM Christopher Schultz > <ch...@christopherschultz.net> wrote: > > > > If you want to add content before/after the target, why not use > > include() instead of forward()? > > > > -chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > Nicolò Boschi