Title: RE: Documentation in JSP
http://java.sun.com/blueprints/guidelines/designing_enterprise_applications/web_tier/index.html
 
Look particularly at "Servlets and JSP", "JSP Page Design", and "Application Designs".
 
But basically, ideally there should be no scriptlets (<% %> sections) in your JSP page; and if there is, it should only be for outputting HTML and not doing any actual actions.  Any actions that need to be performed should happen through custom tags, JavaBeans, and other Java classes.
 
That's real nice in theory, but in practice it's very easy to cut corners and use scriptlets here and there--it's a lot more time consuming to use custom tags and javabeans for simple tasks.
 
Anyway, explore the Blueprints site and I'm sure it'll start to become clear.
 
-jmc

Reply via email to