I'm using Spring MVC and my jsp's have a
<div id="debug">
section that I would like to be able to show/turn off conditionally while we are in development. For example, if I am looking at page www.example.com/main, www.example.com/main?debug=1 would show me the information that is contained under the debug div.
Is there an easy way to do this? Can I use a URL parameter, should I use a cookie? I would appreciate any ideas you have.