Thanks all for your reply!
Although, its all about view but its not fabricating the view. I think this code snippet should be in your controller.
I don't have a front-controller for some of my JSP's. Would c:import be sufficient?
Is this cross-browser compatible?
If you want to set these headers for a Specific JSP or even for all responses as such , I think using Output filters is a right choice. Correct me if i am wrong.
Code will be much more modular
I'm not familiar with Output filters... I'll try to google that... Thanks!