Let's define a new web context (web application) called
"hellojsf" in Tomcat for our JSF Hello-world
application. First of all, we need to create the standard
directory structure for the web context (as shown
in the figure below). Create a directory called
"hellojsf", under the $CATALINA_HOME\webapps
directory (where $CATALINA_HOME is the Tomcat's installed
directory). Create a sub-directory "WEB-
INF" under "hellojsf". Create
sub-sub-directories: "classes", "lib" and "src"
under "WEB-INF".
Keep the files in the appropriate directories:
"$CATALINA_HOME\webapps\hellojsf":
This directory is known as context root, and keeps
the "jsp", "html" and resources
available to web users.
"$CATALINA_HOME\webapps\hellojsf\WEB-INF":
Keeps the webapp configuration files,
such as "web.xml", "faces-config.xml".
"$CATALINA_HOME\webapps\hellojsf\WEB-INF\src":
Keeps the java program source files
(optional).
Let's define a new web context (web application) called
"hellojsf" in Tomcat for our JSF Hello-world
application. First of all, we need to create the standard
directory structure for the web context (as shown
in the figure below). Create a directory called
"hellojsf", under the $CATALINA_HOME\webapps
directory (where $CATALINA_HOME is the Tomcat's installed
directory). Create a sub-directory "WEB-
INF" under "hellojsf". Create
sub-sub-directories: "classes", "lib" and "src"
under "WEB-INF".
Keep the files in the appropriate directories:
"$CATALINA_HOME\webapps\hellojsf":
This directory is known as context root, and keeps
the "jsp", "html" and resources
available to web users.
"$CATALINA_HOME\webapps\hellojsf\WEB-INF":
Keeps the webapp configuration files,
such as "web.xml", "faces-config.xml".
"$CATALINA_HOME\webapps\hellojsf\WEB-INF\src":
Keeps the java program source files
(optional).
No comments:
Post a Comment