• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP style guide?

 
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know of a widely accepted style guide for writing jsp? Perhaps the Ranch will endorse or develop a style guide similar to the one in the Chicken Coop?
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm afraid I don't know what you mean by "style guide". Do you mean a "best practices" approach to developing JSP? If that's the case, I recommend just following the spec. If that's too much information, just remember: logic and presentation don't play well together. Otherwise, I tend to follow the JSP syntax card as gospel:
http://java.sun.com/products/jsp/technical.html
------------------
 
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are there any jsp programming style
like the one in The Chiken coop, here at Javaranch ?
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nope, not yet, I think.
Thanks for the idea though.
regds.
- satya
 
Joe McGuire
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Michael, by "style guide," I mean not so much a best practices approach. I mean a standardized style or convention to things such as: should directives go between the <head> and <body> tags, or in one of them? Indentations, spacings, should the code between the <% and %> scriptlet tags be on separate lines, etc. Something just like the chicken coop's style guide, but for jsp (and I guess that would mean html too).
I'm just getting into writing a lot of jsp, and see that many people write in very different styles.
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can refer to Java Server Programming (J2EE Edition) Wrox Publication. A chaper on writing Maintainable JSPs talks about standard coding guidelines for JSPs
 
Joe McGuire
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great! I'll check it out.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic