Importing Web Modules

See Also

The IDE requires that the web module directory structure conforms to the structured directory format for the web archive (WAR) format. If the web module conforms to this format, use the following steps to import the web module into the IDE. Otherwise, follow the steps for changing the directory structure into a web module directory structure, as shown later in this topic.

The web module must be mounted at its root (document base) directory. If mounted correctly, the WEB-INF directory will display the web module icon. If mounted incorrectly, the web module will not execute.

To load a web module directory:

  1. Choose File and choose Mount Filesystem.
  2. In the Mount Filesystem dialog box, choose Mount Local Directory and click Browse. Note that you can also choose to mount a CVS filesystem that contains a web module.
  3. Navigate to the location of the web module directory and select it. Click OK.
  4. If the Directory field in the Mount Filesystem dialog box reflects the correct web module directory, click OK to mount the directory. Otherwise, click Browse to repeat the selection process.

Use the following steps if the development directory structure for your web module does not conform to the WAR directory structure.

To change a directory into a web module:

  1. Choose File and choose Mount Filesystem to mount the filesystem root directory to be converted.
  2. In the Filesystems window, select the newly mounted filesystem.
  3. From the main menu bar, choose Tools and choose Convert Filesystem into Web Module.

Note that the directory has not actually moved, but is now recognized by the IDE as a web module directory. When a web module containing .jar files in its WEB-INF/lib directory is mounted, the .jar files in the lib directory are mounted as well, unless they were developed in the IDE and the development directory is already mounted.

You can now view the web module in both the Filesystems window and the Project window.

See Also
About Running Web Modules
Unpacking and Mounting WAR Files
Where to Put Web Module Files
Using CVS With Web Modules
About Running Web Modules
Changing Web Modules Into Standard Directories

Legal Notices