CHAPTER SUMMARY – Develop Java Web Applications to Access Databases

8.7   CHAPTER SUMMARY

Most key techniques and knowledge in Java Web database programming are fully discussed and analyzed in this chapter with real project examples. The most popular and important techniques in Java Web database programming, such as JavaServer Pages (JSP), JavaServer Faces (JSF) and Enterprise Java Beans (EJB), are introduced and discussed in detail in different sections in this chapter.

Starting from an introduction to the fundamental Java Web server Servlets and HTML Web pages, a comprehensive historical review of Java Web application development and implementation

FIGURE 8.104   The run result of getting all course details.

is provided with example code. Then an introduction to the development of JavaServer Pages and Java help classes to improve Java Web database applications is given with some code examples.

To effectively improve and enhance the efficiency and quality of Java Web database applications, the Java core techniques, Java beans and Java enterprise edition (Java EE 7), are discussed and ana-lyzed in detail with a few code examples.

Following a quick introduction to the Java EE Web application models, three actual Java Web database projects are introduced and discussed in detail.

The first project, JavaWebOracleSelect, which is built based on some key techniques listed previously, is used to access an Oracle 18c XE database with the runtime object method. Five popu-lar Web pages, LogInPage.jsp, SelectionPage.jsp, FacultyPage.jsp, CoursePage. jsp and Student.jsp, which work as Web views, are built and developed with JSP techniques. The Tomcat server that works as a Web server and the Java help classes and Java beans that work as models are developed and implemented to provide users both a global and detailed picture of the process of Java Web database application building and development.

The second project, JavaWebOracleInsert, which is built based on the JSP and Java Bean techniques, is used to insert new records into the Oracle database with the help of Java Beans tech-niques. The binding relationships between each attribute of the tags in JSP pages and the associated property in the Java bean class are built and illustrated in detail with actual example code and step-by-step explanations in the coding process.

The third project, JavaWebOracleUpdateDelete, which is built based on JSP pages and Java Bean techniques, is used to manipulate the Oracle database.

Some important techniques and points in developing and building a successful Web database application are emphasized and highlighted as follows:

  • Different data actions are performed and illustrated using the coding process and line-by-line explanations, including data query, data insertion and data update and delete actions.
  • The Web project structure and navigation process are developed with the help of the Web configuration file, faces-config.xml, with actual examples and step-by-step illustrations.
  • The relationships between Java managed beans and Java session beans are fully discussed and analyzed using actual example code and line-by-line explanations.
  • The mapping relationships between each attribute in the tags on our JSP pages and the associated property in the Java managed beans are explicitly illustrated with a real coding process.

After finishing this chapter, readers will have a solid understanding and a clear and complete picture of Java Web database applications, including Web structures, components, navigation and mapping relationships between different objects, as well as the connections among those compo-nents. It hard to find a similar book that contains such detailed and clear illustrations on these topics about Java Web applications in the current market.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *