Can a forwarding servlet modify header/coookies?

Can a forwarding servlet modify header/coookies?

Postby 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?
javalatte
 
Posts: 55
Joined: Tue Jan 29, 2013 2:31 pm

Return to Servlets

Who is online

Users browsing this forum: No registered users and 2 guests