Working with Web Applications

The following table shows how to work with web applications.

Number one
Create project
  1. Register the target server for your application.
  2. 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.
  3. Configure the classpath for the project. You can add a JAR file, a library, or an IDE project to the classpath.

Number two
Create web components
  1. Choose File > New File or right-click any project and choose New > Other.
  2. Under Categories, select Web. Under File Type, select the web component that you would like to create.
  3. Click Next and follow the instructions in the wizard.

Number three
Edit web components
  1. In the Projects window or Files window, double-click the web component that you would like to edit.
  2. Use the Source Editor to edit the web component.

Number four
(optional)
Connect to database
  1. 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.
  2. If the database node is broken, right-click the node and choose Connect, and then connect to the database.

Number five
Deploy and run application
  1. 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.

Number six
Debug web application
  1. Set breakpoints or watches in your code.
  2. Choose Debug > Debug Main Project or right-click any project and choose Debug. You can also attach a running process to the debugger.
  3. Step through the program execution.
  4. Choose Debug > Finish Debugger Session when you are finished debugging.

Legal Notices