Java Reference
In-Depth Information
}
}
Running the
compositecomponentlogin
Example
You can use either NetBeans IDE or Ant to build, package, deploy, and run the
compos-
itecomponentlogin
example.
To Build, Package, and Deploy the
compositecomponentlogin
Example Using NetBeans IDE
1. From the File menu, choose Open Project.
2. In the Open Project dialog, navigate to:
tut-install
/examples/web/
3. Select the
compositecomponentlogin
folder.
4. Select the Open as Main Project checkbox.
5. Click Open Project.
6. In the Projects tab, right-click
compositecomponentlogin
and select
Deploy.
To Build, Package, and Deploy the
compositecomponentlogin
Example Using Ant
1. In a terminal window, go to:
tut-install
/examples/web/compositecomponentlogin/
2. Type the following command:
ant
3. Type the following command:
ant deploy
To Run the
compositecomponentlogin
Example
1. In a web browser, type the following URL:
http://localhost:8080/compositecomponentlogin/
The Login Component page opens.
2. Type values in the User Name and Password fields, then click the Log In but-
ton.
Because of the way the
login
method is coded, the login succeeds only if the
user name is
javaee
.