JSP : Readability

Embedding too much Java code in the page can easily lead to pages that are unreadable as content (typically HTML) is mixed with JSP tags and Java code wrapped up as scriptlets. In addition to the confusion caused by the various syntaxes that each of these "languages" uses, one clear problem with embedding Java code inside JSP pages is that it's hard to correctly indent your source code. Writing and indenting code is trivial when dealing with regular class files, but trying to correctly indent Java code that is mixed up with HTML and JSP is a different story.

No comments:

Post a Comment