You test JSF Pages with Apache Tomcat as follows:
-
Install a Web server such as Tomcat or an application server such as JBoss.
-
Generate Java code
-
Import the JSF project into Eclipse. The project is built.
-
Copy the <ProjectName> folder under the .deployables folder into the Apache Tomcat webapps folder.
Where <ProjectName> is the Eclipse project name.
-
Start the database.
-
Start Apache Tomcat server.
-
Run the Web application using the URL: http://<hostname>:8080/<ProjectName>/index.jsp.
If Apache Tomcat is installed locally, <hostname> is localhost.