Testing the Ajax input form
Next, we shall test the input form, which sends Ajax requests to the WebLogic server.
Display the form with the URL http://localhost:7001/weblogic/input.jsp . URL
pattern weblogic is included in the URL, as the context root of the WAR file is
specified as weblogic in the application.xml file:
Start to specify a catalog id value. An Ajax request is sent to the server and a validation
message "Catalog Id is Valid" gets displayed. For the validity of a catalog id, we have
used just the business logic that a catalog id is not specified in the database, but other
business logic may be added, such as regular expression matching.