JATO Tutorial

Chapter 2, Task 6
<< Prior Task | Top | Next Task >>

Task 6—Run 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

  1. Make sure all the classes in the classes directory are compiled
  2. 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.
  3. 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)

  4. 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.
  5. Test unsuccessful login. Enter an invalid login and press the submit button. The Login page should be redisplayed with the "Failure" message.

 
<< Prior Task | Top | Next Task >>