background image

Running the Application

<< Running Basic Authentication Servlet | Troubleshooting the Example >>
<< Running Basic Authentication Servlet | Troubleshooting the Example >>

Running the Application

The role of helloUser, as defined for the application, is mapped to the group of user, as
defined for the Application Server.
When these conditions are met, and the server has authenticated the user, the application
will display as shown in
Figure 30­9
.
4. Enter your name and click the Submit button. Because you have already been authorized,
the name you enter in this step does not have any limitations. You have unlimited access to
the application now.
The application responds by saying "Hello" to you, as shown in
Figure 30­10
.
FIGURE 30­9
Running the Application
FIGURE 30­10
The Running Basic Authentication Example
Examples: Securing Web Applications
The Java EE 5 Tutorial · September 2007
884