Plan of the Thread: Java for Web Application Development:
The main task of the thread:
Allow a student to build his own WEB application on his own computer.
Table of contents
1. Simple Java application
2. Simple HTML form
3. Multitier architecture for Web application and the Simple Web Server application
4. Database application
5. Understanidng of Enterprise Java Beans
6. Simple stateless session bean application
7. Container-Managed persistence in an entity Bean application
8. Bean-Managed persistence in an entity Bean application
9. XML/XSL processing
10. Java LOTUSXSL application
11. Java Server Pages
12. Complete Integration of all components into one Web application
- Simple Java application
- How java works (compiling from the source code to byte code and then using java virtual machine)
- Use of javac and java.
- Use of JBuilder.
- The simple Java application ( class + main())
- Use of import
- Use of packages
- Use of jars
- Example of method, variable, objects
- Simple HTML form
- How HTML works – (from the source code to the image on Screen using a browser).
- Simple tags <p>, <br>, <font>, ...
- Simple form with get and post. Passing parameters to Web server
Example of the Form
- Multitier architecture for Web application and the Simple Web Server application
- Components of n-tier application: Servlets, JSP, EJB, Database
- Simple servlet – configuration using LWS and Weblogic
- Receiving parameters from HTML form and building the new HTML form in response
- Database application
- Installation of MySql
- Examples of a Simple SQL with MySql
- Explanation of the Driver, Connection, Statement, RecordSet....
- Creating the program that communicates with MySql, i.e. gets Connection, creates table, modifies the table, and gets data from the table
- Understanding of Enterprise Java Beans
- Understanding of Client-Server programming. Difference between communications using protocol and interfaces. Various implementation of client-server architecture.
- Architecture of Enterprise Java Beans. Understanding JNDI.
- Conceptions of a home interface, remote interface, bean. Understanding of implementation of interface methods.
- Simple stateless session bean application
- Configuration of Enterprise Java Beans (jars, xml file).
- Methods, that are required to be implemented
- Concept of a session bean and an example of the simple stateless session bean
- Container-Managed persistence in an entity Bean application
- Concept of an entity bean, i.e. persistent bean
- Connection between the members in the bean and records in the database.
- Configuration of a container-managed entity bean.
- Example
- Bean- Managed persistence in an entity Bean application
- Implementation of connection between bean and the database.
- Configuration of a bean-managed entity bean.
- Example
- XML/XSL processing
- Concept of XML, tags, rules for tags, nodes – parent, child.
- The purpose of XSL – extended stylesheet language
- Simple XML/XSL processing
- Java LotusXSL application
- The JAVA program for converting XML to HTML using XSL
- Incorporating this program into servlet/JSP for displaying results in a browser.
- Java Server Pages
- THE COMPONENTS OF JAVA SERVER PAGES
- Directives
- Actions
- Implicit Objects
- Expressions
Example of the calling Form
Example of the JSP
- Complete Integration of all components into one Web application
Building the application that takes data from a user using JSP, communicates with a database using EJB and displays the results using servlets and XML/XSL