Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

JSP Coding Guidelines(Do's & Donts)

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
thanks
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here is the code convention at sun: http://java.sun.com/docs/codeconv/
 
parul jain1
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
etc..
so if you find any document already developed by somebody please refer.
thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic