Develop the Mock User Interface
Let's develop a mock user interface for our application.
We'll cover the following...
We'll cover the following...
Now that we have seen how to write the mock service with an in-memory database, let’s write the user interface that will use this mock service. The user interface will have the means to add, edit, delete, and show all records related to the Person, including the phone numbers. A screenshot of the user interface is shown in Figure 6-2.
JSP page
The JSP body is the page that is initially loaded. After that, the JavaScript actions are called. We will start with the JSP fragment and then follow it with the JavaScript functions.
loadObjects method
First, look at the JavaScript loadObjects method, which is ...