Link to home
Start Free TrialLog in
Avatar of KPax
KPax

asked on

change size of out.write buffer

I have to debug some legacy code. There are lot of servlets, jsp, compiled jsp, jspf, JavaScript etc. The hardest part is that JSP pages are precompiled and deployed in JBoss so all I can do is to remotely debug compiled not source pages. I have a source, but of course eclipse debugger is stepping through this_and_that_jsp.java.

The problem is that there is lot of HTML and even worse JavaScript code generated in those JSP pages. The only way to find where it breaks is to observe response (HttpServletResponse) CharArrayWriter step by step as it generates HTML page.

The problem is that it writes (of course) every 8192 characters. So, I can see the page (HTML with JavaScript) just before error and after it, but I can't catch exact moment. What would be solution to this? Should I decrease buffer size to 1 or so? I can't put 'flush' because I don't not where it breaks, I have to step through code line by line (or at least block by block). Where should I change buffer size for HttpServletResponse?

User generated image
ASKER CERTIFIED SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial