Create the project using the best
template
for your programming needs. While creating the project, you can let the
IDE include libraries and configuration files for
JavaServer Faces,
Struts, or
Spring.
If the database connection is not visible in the
right-click the Databases node and choose New Connection, then add
the database connection in the New Database Connection dialog box.
If the database node is broken, right-click the node and choose Connect,
and then connect to the database.
Deploy and run application
Choose Run > Run Main Project or right-click the project and
choose Run. The project is compiled, new and changed files are copied
from the project's build directory to the WAR's deployment directory.
The deployed application then opens in a browser.