jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes JSP Coding Guidelines(Do's & Donts) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP Coding Guidelines(Do Watch "JSP Coding Guidelines(Do New topic

JSP Coding Guidelines(Do's & Donts)

parul jain1

Joined: Apr 25, 2001
Posts: 5
I require to prepare a document regarding "JSP Coding Guidelines". This document will be taken as a standard while developing jsp's in our project.
Suggest some relevant site from where i can pick up the material as it is. The document should clearly tell the Do's and Dont's while writing a jsp page.
Dustin Marx
Ranch Hand

Joined: Mar 06, 2001
Posts: 40
I would be interested in a similar type document, but do not know of any in the format you mention. However, the following links provide information from which "do" and "don't" ideas could be gleaned.
Hans's Top Ten JSP Tips http://java.oreilly.com/news/jsptips_1100.html
Blueprints -- The Web Tier http://www.java.sun.com/j2ee/blueprints/web_tier/index.html
Use JSP Templates To Encapsulate Webpage Layout and Encourage Modular Design http://developer.java.sun.com/developer/technicalArticles/javaserverpages/jsp_templates/
J2EE Project Dangers (JavaWorld) http://www.javaworld.com/javaworld/jw-03-2001/jw-0330-ten_p.html
Process JSPs Effectively With JavaBeans (JavaWorld) http://www.javaworld.com/javaworld/jw-01-2001/jw-0119-jspframe_p.html
Understanding JavaServer Pages Model 2 Architecture http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc_p.html
Encapsulate Reusable Functionality in JSP Tags (JavaWorld) http://www.javaworld.com/javaworld/jw-08-2000/jw-0811-jsptags_p.html
Advanced Form Processing Using JSP (JavaWorld) http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-forms_p.html

Cynthia Yao
Ranch Hand

Joined: Nov 06, 2000
Posts: 92
here is the code convention at sun: http://java.sun.com/docs/codeconv/
parul jain1

Joined: Apr 25, 2001
Posts: 5
thank you Dustin.
These sites will surely help.
Format is not told to me either.
Its just that in our previous project, during reviews we found lots of bad practices being followed.
Like putting
1. lot of java code inside the jsp page.
2. use of global variables.
so if you find any document already developed by somebody please refer.
I agree. Here's the link: http://aspose.com/file-tools
subject: JSP Coding Guidelines(Do's & Donts)
It's not a secret anymore!