Forums Register Login

Good JSP examples

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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?
I don't even know how to spell CIA. But this tiny ad does:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1121 times.
Similar Threads
JSP plugins for Eclipse
Enums in JSPs
JSP Best practices
how run jsp from Jbuilder using Weblogic?
how to call Jsp in servlet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:35:27.