This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I'm new to servlet and jsp. And now i'm ok with both servlet and jsp. Have a plan to start with the simple project. (Login form-> authentication -> a simple form entry with simple validations -> Saving the fields in the database -> Admin login -> Edit and delete the form entries.). My problem is how i can design the project. Whether i can do all the stuffs by using only the jsp or i have to use Servlet also. I knew without servlet itself we can do it. But which is the most recommended one?? Please guide me !!
Don't use only JSPs - in fact, it is better to use as little Java code as possible in your JSPs. That's because JSPs are really about the HTML and how your application looks, while the Java code is really the underlying business logic. Mixing them up will quickly make your program a mess where it is hard to find out what is happening. Put Java code in servlets, and let those servlets forward requests to JSPs, and let the JSPs handle only the displaying of content as much as possible.