[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
42
Originally posted by Jeanne Boyarsky:
It's good practice to keep code (especially database code) out of the JSP. A preferred solution is to process the data in a servlet and just use the JSP to display it.
Originally posted by Adeel Ansari:
Everybody please paste it just on the top of their monitors.
Just want to add:
It's good practice to keep database code out of both JSP & Servlet. For DB stuff use some normal plain java classes or some mapping frameworks as you feel like.
[ February 06, 2005: Message edited by: Adeel Ansari ]
Originally posted by Adeel Ansari:
Just want to add:
It's good practice to keep database code out of both JSP & Servlet. For DB stuff use some normal plain java classes or some mapping frameworks as you feel like.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Ben Souther:
J2EE gives us the power to choose from many different architectures. The trick is knowing which tool to use for which job.
Originally posted by Bear Bibeault:
Also, using the Tomcat documentation to try and learn web application structure and best practices is like using your oven's manual to learn to make the French mother sauces.
42
Originally posted by Chit Ming Chong:
Hi all,
Is there a way to implement MVC without RequestDispatcher? When using a RequestDispatcher the controller servlet need to know which jsp to forward to; however, in some other MVC approach, the view will find out by itself when the model is updated and update itself automatically. This will be easier to build a model with mulitple views.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |