Is there a particulare
IDE you are using?
With WebSphere Studio Application Developer, or IBM's Rational Application Developer (IRAD), you can set breakpoints in
Java code in a JSP and step through your code at runtime. It's an invaluable service.
Having said that of course, there is great value in minimizing the amount of code in a JSP. Factore out logic into custom tags or Java classes which are easier to maintain, reuse, and debug.
-Cameron McKenzie