A HISTORICAL REVIEW ABOUT JAVA WEB APPLICATION DEVELOPMENT – Develop Java Web Applications to Access Databases

8.1   A HISTORICAL REVIEW ABOUT JAVA WEB APPLICATION DEVELOPMENT Java Web applications are based on the Servlet technique, and the Servlet works as a Web server that provides all support, such as receiving requests from the client and sending responses back to the client. That is, a Servlet is a server class built in the … Read moreA HISTORICAL REVIEW ABOUT JAVA WEB APPLICATION DEVELOPMENT – Develop Java Web Applications to Access Databases

Using Java Help Class Files for Java Web Applications 2 – Develop Java Web Applications to Access Databases

I. The executeQuery() method is executed to perform the query, and the returned result is assigned to the ResultSet object rs.J. A while loop is used to pick up any possible matching username and password. In fact, only one row is returned, and thus this loop can run only one time. The getString() method is … Read moreUsing Java Help Class Files for Java Web Applications 2 – Develop Java Web Applications to Access Databases

Build the Help Class FacultyBean 2 – Develop Java Web Applications to Access Databases

The operational sequence and data transformation structure of the Faculty Name are shown in Figure 8.16, where the faculty name is used as an example to illustrate how to transfer data between the client and the help class. The operational sequence is: 1) First the desired faculty name is entered by the user into the … Read moreBuild the Help Class FacultyBean 2 – Develop Java Web Applications to Access Databases

Using Java Beans Technology for Java Web Applications – Develop Java Web Applications to Access Databases

8.1.5   Using Java Beans Technology for Java Web Applications In recent years, the Java beans technique has been widely applied in Java Web applications. In fact, a Java bean can be considered an extended Java help class, as we discussed in the previous sections, and the main purpose of a Java bean is to handle … Read moreUsing Java Beans Technology for Java Web Applications – Develop Java Web Applications to Access Databases

Build a New Starting Web Page, FacultyBeanPage – Develop Java Web Applications to Access Databases

8.1.5.2  Build a New Starting Web Page, FacultyBeanPage The preview of this page is shown in Figure 8.21. The difference between this starting page and the FacultyPage.jsp starting page we built in the last section is: in FacultyPage.jsp, we used a JSP built-in or implicit object session to transfer data between the page and the … Read moreBuild a New Starting Web Page, FacultyBeanPage – Develop Java Web Applications to Access Databases

The Application Configuration Resource File, faces-config.xml – Develop Java Web Applications to Access Databases

8.1.6.1   The Application Configuration Resource File, faces-config.xml Navigation from one page to another can be done in two ways. One way is to use code directly by writing a JSP tag such as <jsp:forward /> or an HTML hyperlink in the JSF file. Another way that is provided by JSF is to use the application … Read moreThe Application Configuration Resource File, faces-config.xml – Develop Java Web Applications to Access Databases

Sample JavaServer Face Page Files – Develop Java Web Applications to Access Databases

8.1.6.2  Sample JavaServer Face Page FilesTwo JSF files are shown in Figures 8.25 and 8.26. In Figure 8.25, a Current.jsp page that works as a receiving page to get the username is shown. In Figure 8.26, Next.jsp, which works as a responding page to select and return a matching password based on the username to … Read moreSample JavaServer Face Page Files – Develop Java Web Applications to Access Databases

A Complete Run Procedure of JSF Web Applications – Develop Java Web Applications to Access Databases

8.1.6.5  A Complete Run Procedure of JSF Web Applications As we mentioned, a UI component represented by a JSF tag in a JSP page can be bound to a Java bean’s property or method. To separate the presentation and business logic, we can use JSP pages to present our GUI and Java beans to store … Read moreA Complete Run Procedure of JSF Web Applications – Develop Java Web Applications to Access Databases

The Java Bean–JSF Page Relationship and Page Navigation – Develop Java Web Applications to Access Databases

8.1.6.5.1   The Java Bean–JSF Page Relationship and Page Navigation Table 8.1 lists all data access methods and action methods used in this example. A Java bean can be connected to a JSF page by using the value attribute of a UI component represented by a JSF tag in that page. That is, a property or … Read moreThe Java Bean–JSF Page Relationship and Page Navigation – Develop Java Web Applications to Access Databases

JAVA EE WEB APPLICATION MODEL – Develop Java Web Applications to Access Databases

8.2   JAVA EE WEB APPLICATION MODEL The Java EE application model begins with the Java programming language and the Java virtual machine. The proven portability, security and developer productivity they provide form the basis of the application model. Java EE is designed to support applications that implement enterprise services for customers, employees, suppliers, partners and … Read moreJAVA EE WEB APPLICATION MODEL – Develop Java Web Applications to Access Databases



                    Blog, Contribute ,Privacy,Terms of Use,Trademarks,© estherknow 2024