Course Contents (10 sessions of 3hrs each)
Introducing JSP • JSP lifecycle • Comments • HTML Comments • JSP Comments • Java Comments • Difference between JSP and HTML Comments • JSP Syntax Elements • Expressions • Scriptlets • declarations • Directives • Page Directive • Include Directive • Taglib Directive • How JSPs are translated to servlets
Session management with JSP • Role of state management in Web applications • Using an HttpSession object to maintain state across requests • Controlling session behavior via the web.xml file
JSP and Java Beans, JDBC and Database
JavaBeans and JSP • The role of JavaBeans in JSP applications • Architectural approaches for designing JavaBeans • Creating, testing, and deploying JavaBeans • Communicating with JavaBeans from JSP via jsp:useBean, jsp:setProperty, and jsp:getProperty
JDBC (Java Database Connectivity) • Overview of JDBC architecture • JDBC driver types • Loading a driver • Connecting to a database • Communicating with the database via ad hoc SQL queries • Using the Statement class • Using the PreparedStatement class • Handling exceptions • Via a try-catch-finally block • Via JSP Custom error pages • Retrieving and displaying results
Introduction to Java Servlets and JSP Custom Tags • Introduction to Java Servlet Technology • Java Servlet • Java Servlet Features • Java Servlet Life Cycle • Java Servlet Architecture • Generic Servlet • HTTP Servlet • JSP Vs. Servlet • Developing Java Servlet