I would like to learn the art of J2EE Web Application development using Netbeans and Glassfish but not sure which path to take. Particularly on whether I need to get a good understanding in Servlet, JSP, or would JSF be sufficient? Likewise, any suggestion on which book to read to fast-track my learning in this area?
Why do you place importance on the NetBeans IDE and Glassfish?
Understand that the three concepts you mention are not distinct technologies.
1. A Java Server Page (JSP) is a Java servlet.
2. The Java Server Faces (JSF) framework consists of a combination of Java servlets and JSP tag libraries.
So, you should first learn the Java Servlet API and the various features of a Java Web server (including a JSP Engine). Apache Tomcat is a good starting point.
Keep in mind that in a three-tier programming model, such as J2EE, a web application connects to a business application for executing business logic. The three tiers are: Presentation, Business and Integration. Web applications only contain presentation/display logic, i.e. accepting and presenting data to a human user. The processing of data occurs in the business application, not the web application.
A good book to have is:
Java Servlet & JSP Cookbook Author: Bruce W. Perry Published by O'REILLY ISBN: 0-596-00572-5 [ December 11, 2008: Message edited by: James Clark ]
Joined: Oct 20, 2006
Thanks for responding to this post.
The reason for having place some preference over Netbeans IDE and Glassfish is simply because I have found them to be useful but have not tried any competitive products apart from JBoss AS.
I am familiar with the Business and to some degree also with the Integration tiers, and would like to focus on Interfacing tier to capture and present data available from the other tiers.
The book Java Servlet & JSP Cookbook by Author: Bruce W. Perry (2004) appears to be out of date. I am wondering whether the HeadFirst Servlet & JSP book (2nd Ed; Mar, 2008) would also be a good candidate as well?
Joined: Apr 16, 2008
The servlet and JSP specifications haven't changed that much in the past few years. I wouldn't consider the cookbook "out-of-date." The cookbook is well written and presents hundreds of working examples of things that can be done. It is a great tool and reference.