![]() |
Courses - Server Pages |
JSPs (JavaServer Pages)
for Web Application Development
| Duration: 4 days |
|
Participants:
- This workshop is for professional Java programmers who want to use JSP and Servlets to create the front end to their J2EE web applications, and to see how these technologies separate presentation from the generation of dynamic content. - Basic knowledge Servlets, JDBC, and HTML is required, as well as a programming ability with the Java language and core APIs. Some knowledge of XML is beneficial, but not essential. Knowledge of Web technologies is helpful. |
|
Objectives:
Upon successful completion of this course you will be able to:
- Write JSPs that receive and send data to web pages. - Add a Web interface to your databases using JSP. - Generate dynamic Web pages with JavaServer Pages (JSP) - Develop JSP custom tags to minimize scriptlet code. - Design and implement JSP tag libraries. - Use JSP and java classes with JDBC databases and XML documents. - Design and architecture scalable and maintainable dynamic web applications. - Understand the role of JSP and Servlets in relation to J2EE (Java 2 Enterprise Edition). - Write JSPs that use session variables and cookies to store user information to create"conversation-like" applications. - Handle exceptions in your JSP code. - Use JavaBeans to manage and transfer user data between application components. |
|
Overview:
- This intensive hands-on course teaches developers to create Server-side applications using JSPs. Extensive hands-on workshops use either TextPad or Eclipse as the IDE, as well as Apache Tomcat for the server and an RDBMS, such as MS Access or IBM DB2 for the relational database. - Servlets and JavaServer Pages (JSP) allow you to create dynamic data-driven Web applications. This course provides extensive hands-on experience developing and deploying Web applications. You learn how to integrate key components of J2EE (Java 2 Enterprise Edition), including servlets, JSPs and XML technologies. These are the key components also found in Struts, a possible follow-up course. - Java/JSP is widely accepted as the platform independent development environment by many enterprise developers / Entities and transaction modelers. JSP provides Object Oriented Programming in an easy to use environment integrating JAVA with HTML. - JavaServer Pages, together with JavaBeans and Java Servlets, provide the dynamic web content presentation layer for Java 2. JSPs and JavaBeans integrate tightly to enable scalable and portable applications, and are widely supported. - This workshop looks in depth at these core components, preparing you for building the next generation of web solutions. You'll learn about the JSP tag library model; the new filtering and application event facilities; how to architect web applications to ensure a clean separation of presentation and logic. This workshop also addresses using JSP with database access using JDBC; and how JSP and Servlets fit into the overall J2EE platform alongside other J2EE technologies. - Upon completion of this course the student will have seen a small scale development cycle completed with the use of Java Technology and Database Connectivity, and get an understanding of how the technology is implemented into an actual working environment. |
| Prerequisites: HTML, Java, JDBC, Servlet programming, JavaScript, Basic knowledge of the web development. |
|
Future Courses for Additional Advanced Topics:
- Struts - JSFs (Java Server Faces) - OO and UML |
| Format: Lecture and discussion with hands-on exercises. |
|
Topics:
- Creating Web-based forms for user input Adding text fields and drop-down lists Linking forms to servlets Retrieving form data in the servlet - JSP (JavaServer Pages) fundamentals Design goals of JSP Using JSP scriptlets, expressions and declarations Mixing static and dynamic content Communicating with the client using built-in JSP server objects - Beans State management with JSP Storing common application data - JSP and Servlet Architectures - Integrating JSP and JavaBeans Introduction to Java Beans. Creating a Java Bean. Using a Java Bean with a JSP. Integrating a web site with JSP Technology (Dynamically Generating Content) Promoting object reuse Separating application logic from the presentation Calling JSP from servlets Forwarding Java objects to a JSP Using JavaBeans to transfer data Servlet and JSP design patterns - Creating JSP Custom Tags The role of JSP custom tags in Web applications Analyzing the usage models for JSP custom tags Comparing JSP custom tags and JavaBeans Developing custom tags Defining the Tag Library Descriptor (TLD) Implementing the tag handler Accessing the custom tags with a JSP - Integrating JSP and XML Creating well-formed XML documents Validating XML documents with Document Type Definitions (DTDs) Business applications for XML |
|
Detailed Course Outline:
- Web application development overview Requirements for developing a Web application Components of an n-tier architecture ODBC/JDBC Database Connectivity HTML Overview. Component development of web applications Java Web Server JSP JSP and Servlets XML Components of an n-tier architecture Components of J2EE for Web application development Servlets JSP XML - Creating JavaServer Pages (JSP) JSP fundamentals Design goals of JSP Using JSP scriptlets, expressions and declarations Mixing static and dynamic content Communicating with the client using built-in JSP server objects State management with JSP Accessing cookies and sessions Storing common application data - Designing JSP and Servlet Architectures Integrating JSP and JavaBeans Promoting object reuse Separating application logic from the presentation Calling JSP from servlets Forwarding Java objects to a JSP Using JavaBeans to transfer data Servlet and JSP design patterns - Maintaining State in JSPs Cookies Circumventing cookie limitations Managing application state with sessions Creating a unique session for each user Storing and retrieving Java objects within sessions Controlling a session's life span - Creating JSP Custom Tags Exploiting the Tag Extension mechanism The role of JSP custom tags in Web applications Analyzing the usage models for JSP custom tags Comparing JSP custom tags and JavaBeans Developing custom tags Defining the Tag Library Descriptor (TLD) Implementing the tag handler Accessing the custom tags with a JSP - Building Reusable JavaBeans Components Why components? Review of JavaBeans - Integrating JSP and XML Basics of XML Creating well-formed XML documents - Deploying Your Java Web Application Defining the deployment descriptor Creating a Web Application Archive (WAR) file |
|
|