Task 6Run the application
We've now added an additional page to our application, and linked it to the
first page. Let's run it.
Step 1: Compile, deploy, and run the Customer page
- Make sure all the classes in the classes directory are compiled
- Package up the
JatoTutorial
directory using a zip or jar tool.
Name the output file JatoTutorial.war
. Remember, the /WEB-INF
directory should appear in the root of the WAR file.
- Deploy and run your application in your J2EE container of choice:
http://localhost:8080/JatoTutorial/module1/Login
(Apache Tomcat or Caucho Resin)
http://localhost/NASApp/JatoTutorial/module1/Login
(iAS 6.x)
- Test successful login. Enter a valid login ("alfki", "anton"
or "bonap") and press the submit button. The Customer page should
be displayed with the customer data that corresponds to the value you entered
in the login field.
- Test unsuccessful login. Enter an invalid login and press the submit button.
The Login page should be redisplayed with the "Failure" message.