To build, package, and deploy this application using NetBeans IDE, follow these steps:
Follow the steps in Setting Up Your System for Running the Security Examples.
Open the project in NetBeans IDE by selecting File->Open Project.
Browse to the tut-install/examples/web/hello2_formauth/ directory.
Make sure that Open as Main Project is selected.
Select Open Project.
Right-click hello2_formauth in the Projects pane, then select Clean and Build.
Right-click hello2_formauth in the Projects pane, then select Deploy.
Follow the steps in Testing the Form-Based Authentication Web Client.