• Post Reply Bookmark Topic Watch Topic
  • New Topic

Good JSP examples

 
Helen Ross
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have been looking at dodgy code for the past few months that I have actually forgot what good code looks like.

Would anyone be able to point me in the direction of a simple application so I am able to get back into the mind set of good practises again.

Current technologies being used at the moment is java, jsp, css, and javascript (both a mixture of jquery and dojo). There is currently no framework in place either and everything is done in tables.

Thanks
Shortsmiler
 
Saurabh Pillai
Ranch Hand
Posts: 526
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.javaranch.com/journal/200603/Journal200603.jsp#a5 Is this something you are looking for?

There is currently no framework in place either and everything is done in tables.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frameworks aren't necessary for code to be considered "good". The use of tables for layout is poor, but is an HTML and CSS issue, not a JSP one.
 
Helen Ross
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Saurabh this is something like what I am looking for

Bear - I do take your point but I am trying to put something into the code that will give it some form of structure. There is a lot of Java code which has been hard coded into the jsp pages and a lot of calculations which are done with the jsp pages as well.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helen Ross wrote:There is a lot of Java code which has been hard coded into the jsp pages and a lot of calculations which are done with the jsp pages as well.

Yeah, all that is really bad. Any type of computations that the page needs should be handled in the page controller before the JSP is forwarded to.

Perhaps this article might be helpful?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!