Open in new window

back

Creating a New Struts Project

Exadel Studio provides the following when working with Struts:

  • Create new Struts projects
  • Import (open) existing Struts projects
    • You can import any project structure
  • Add Struts capabilities to any existing Eclipse project
  • Import and add Struts capabilities to any existing project created outside Eclipse

Exadel Studio includes a New Struts Project Wizard that radically simplifies the process for getting started with a new JSF project. You just need to follow these 4 steps:

  1. Select File->New->Project... from the menu bar. Then, select Exadel Studio->Struts->Struts Project in this dialog box. Click Next.

    createStrutsProject.gif

  2. On this screen, provide the project name. You can leave all other values as they are.

    createStrutsProjectName.gif

    Tip: Don't put spaces in project names.

    Note: If you select the KickStart template, then the project created will include a simple Hello World type application that is ready-to-run.

  3. Next, you can register this application with the current servlet container defined for your workspace (Tomcat, by default) in order to allow you to test your application more easily while still developing it. A new entry will be added in the servlet container's configuration file to enable running the application in-place (called null deployment or link deployment). Uncheck the Register Web Context check box if for some reason you don't want to register your application at this point.

    createStrutsProjectWebContext.gif

  4. On the next screen, you can select the TLD files to include in this project.

    createStrutsProjectTLD.gif

After the project is created, you should have the following project structure (if you used the KickStart template).

createStrutsProjectPackageExplorer.gif

Tip: If you want to hide the jar files from view, select the down-pointing arrow in the upper right corner, select Filters..., check the box next to Name filter patterns (matching names will be hidden):, and type *.jar into the field. Then, click OK.

back