Web project organization

The default directory structure in the Web project adheres to the J2EE specification for Web modules. (Web modules are also known as Web applications, in servlet programming.) This specification defines a project directory structure that specifies the location of WebContent files, class files, class paths, deployment descriptors, and supporting metadata. The Dynamic Web Project uses the following directory structure:

In the course of development, the web.xml and the struts-config.xml files are updated automatically to reflect changes to your Web project. For example, when the Web Interaction wizard is used to create a Web interaction in a Web project, it automatically places the appropriate servlet entries into the web.xml file. When you are testing your application in the Rational® Developer for Power Systems Software Test Environment, and the web.xml file has been updated, the change is not always recognized. In this case you need to restart the project. To do this go to the Servers view, expand the server you are using, right-click nnnEAR and select Restart nnnEAR, where nnnEAR is the EAR file name for your Web project. Watch the console view for a message indicating that the application has been started.


Feedback