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

Now let’s build our LogInQuery.jsp page, which works as a part of the server, to receive and handle the Form data, including the login information sent by the index.jsp page. Figure 8.9 shows the code for this page. Let’s have a closer look at this piece of code to see how it works. A. A … Read moreUsing Java Help Class Files for Java Web Applications 3 – 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

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

8.1.3  Using Java Help Class Files for Java Web Applications To distinguish between database-related data processing and display of run results, we can separate a Java Web application into two parts: JDBC-related database processing and business logic, such as checking and confirming a username and password pair located in a Java help class file, and … Read moreUsing Java Help Class Files for Java Web Applications – Develop Java Web Applications to Access Databases



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