egravel
Apr 21st, 2006, 02:37 PM
I've been trying to figure out how to write some execution statistics and other request related information that is helpful when debugging code in development. My though was that after the DispatcherServlet is done, I could get the PrintWriter from the response and write out to it an html comment. But it doesn't seem to work. The only time I got it working was, I believe, due to an import of another jsp using the URI /clubexplorer.includes so it would make a query to another controller. So what I'm seeing is the first view being rendered makes a request dispatcher forward call and when that url's jsp renders and tries to import the above uri, it calls the dispatcher servlet again and this time it does an include. Does this make sense?
As anyone done something like this?
[More Details]
While messing around with the code, trying to figure this thing out, I foud out that it only writes something when it's doing a request dispatcher include. When there's no include and the dispatcher simply does it's forward, then the output doesn't get written.
I hope this helps.
As anyone done something like this?
[More Details]
While messing around with the code, trying to figure this thing out, I foud out that it only writes something when it's doing a request dispatcher include. When there's no include and the dispatcher simply does it's forward, then the output doesn't get written.
I hope this helps.