JATO Tutorial

Chapter 1, Task 3

<< Prior Task | Top | Next Task >>

Task 3—Run the application

We now have a complete, ready-to-run JATO application.

Step 1: Compile, package, and run the application

  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 after packaging.
  3. Deploy and run the 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 a successful login. Enter a valid login ("alfki", "anton" or "bonap") and press the submit button. The login page should be redisplayed with the "Success" message.
  5. Test an unsuccessful login. Enter in an invalid login and press the submit button. The login page should be redisplayed with the "Failure" message.

<< Prior Task | Top | Next Task >>