Sunday, March 22, 2009

JAVA code in JAVA Server Pages

Using (more than a few lines of) code in JSPs is bad practice. For one reason, you mix logic with presentation. This is the reason you should use a Model 2 framework. But here's another one: you cannot debug JSP code. Of course you can insert prints to figure it out what's happening but if there's pretty complex code there you will surely miss a debugger.

No comments: