File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
Blueprints -- The Web Tier
Use JSP Templates To Encapsulate Webpage Layout and Encourage Modular Design
J2EE Project Dangers (JavaWorld)
Process JSPs Effectively With JavaBeans (JavaWorld)
Understanding JavaServer Pages Model 2 Architecture
Encapsulate Reusable Functionality in JSP Tags (JavaWorld)
Advanced Form Processing Using JSP (JavaWorld)

Cynthia Yao
Ranch Hand

Joined: Nov 06, 2000
Posts: 92
here is the code convention at sun:
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:
subject: JSP Coding Guidelines(Do's & Donts)
It's not a secret anymore!