In order to create a Web application, first create a project. Then prepare an environment that allows the required libraries to be set in the project and enables the build.
Creating the Project
From the [New Project] wizard, select [Web] > [Dynamic Web Project] to create the Web application project.
For details on the parts common to project wizards, refer to "6.2.2.1 Creating New Projects".
Refer below for the settings that are unique to the Dynamic Web Project wizard.
Context Root
Specify the highest level folder used when deploying to the Web server.
Content Directory
Specify the folder that stores all the resources deployed as the Web application.
Java Source Directory
Specify the folder that stores the project source.
Generate deployment descriptor
web.xml is required in Web applications.
Class Path Settings
Class paths must be set if there are libraries or similar that are required in order to create the application. Class paths are set in the project build path.
For details on build path settings, refer to "6.2.2.3 Setting Classpaths".
Note
Do not store class files directly in WEB-INF/classes because this is deleted during the build.
Note
Note the following points when using JSF in a Web application:
Specify either "JavaServer Faces v1.1 Project" or "JavaServer Faces v1.2 Project" in [Configuration] of the Dynamic Web Project wizard.
Add libraries using the following procedure in the [JSF Capabilities] page of the Dynamic Web Project wizard:
Click [New].
Enter "JSF" for the library name, click [Add], select the following jar file, and then click [Finish].
<installation folder>\APS\F3FMisjee\lib\jsf-impl.jar