• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP style guide?

 
Joe McGuire
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • 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?
 
MIchael Kmiec
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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
------------------
 
Zkr Ryz
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any jsp programming style
like the one in The Chiken coop, here at Javaranch ?
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Deepak Mahbubani
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Great! I'll check it out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic