by javalatte » Sun Feb 10, 2013 12:08 am
Let's say servlet1 is forwarding to servlet2. Any output written to the response object by servlet1 is discarded by servlet2 and only the output added to the response object by servlet2 is sent back to the user. But what about headers/cookies? Would servlet1 get to modify them?