Create a Test Application with JBoss Developer Studio

Task Prerequisites
To complete this task, JBoss Developer Studio needs to be installed and running. Download JBoss Developer Studio from http://access.redhat.com.
  1. Create a New Project

    1. Select FileNewOther from the main menu bar to launch the wizard.
    2. Select Dynamic Web Project from the Web folder and click Next.
      Create a dynamic web project
      Create a dynamic web project
      Figure 1. Create a dynamic web project

    3. Set the following attributes and click Next:
      • Project name: HelloWorld
      • Target runtime: None
      • Configuration: Default Configuration
    4. Click Next.
    5. Click Next again.
    6. Check Generate web.xml deployment descriptor and click Finish.
    7. If you see a dialog box with the question, This kind of project is associated with the Java EE perspective. Do you want to open this perspective now?, check the Remember my decision box, and click Yes.
    Result:
    The "HelloWorld" project is now available in the Project Explorer tab.
    HelloWorld project in Project Explorer
    Helloworld project in Project Explorer
    Figure 2. HelloWorld project in Project Explorer

  2. Create a JSP file

    1. Expand the HelloWorld project in the Project Explorer tab.
    2. Right click the HelloWorld and select NewJSP File.
    3. Name the file index.jsp and click Next.
      Create JSP file
      Create JSP file
      Figure 3. Create JSP file

    4. Select New JSP File (html) and click Finish.
      Select the JSP template
      Select the JSP template
      Figure 4. Select the JSP template

    Result:
    A JSP file called index.jsp is created in the WebContent/ directory of the project.
  3. Add Content to the Project

    1. Expand the WebContent folder of the HelloWorld project.
    2. Double click index.jsp to open the file tab.
    3. Add valid XHTML content to the file, between the <body> and </body> tags. Click Save All.
      Modify the JSP file
      Modify the JSP file
      Figure 5. Modify the JSP file

Result:
The test application is created.
Related Tasks: