In the steps below,
$ORION_HOME
refers to the directory in which
you have installed Orion, and
$STRUTS_HOME
is the directory in
which you unpacked the Struts binary distribution.
$ORION_HOME/config/application.xml
to define
the two new applications, by adding the following
declarations, immediately
following the
web-module
directive for the default web application:
<web-module id="strutsDoc" path="$STRUTS_HOME/webapps/struts-documentation.war"/> <web-module id="strutsExample" path="$STRUTS_HOME/webapps/struts-example.war"/>
$ORION_HOME/config/default-web-site.xml
(or
the configuration file for any other Orion website)
to include the following
declarations, after the declaration for the <default-web-app>
if any:
<web-app application="default" name="strutsDoc" root="/struts-documentation"/> <web-app application="default" name="strutsExample" root="/struts-example"/>
http://localhost/struts-documentation http://localhost/struts-example
javax.servlet.jsp.JspException: Missing
resources
attributeorg.apache.struts.action.MESSAGE
ORION_HOME/log/global-application.log
log file.
To work around this problem, you can take the
following steps:
$STRUTS_HOME/webapps
directory, where you will
note that Orion has automatically expanded
each web application into an
unpacked directory structure.
$STRUTS_HOME/webapps/struts-example/WEB-INF
directory,
and copy the file
struts-config.xml
one directory up (that
is, into
$STRUTS_HOME/webapps/struts-example
.
$STRUTS_HOME/webapps/struts-example/WEB-INF/web.xm
file, changing the value of the "config"
initialization parameter (for the
action servlet) from
/WEB-INF/struts-config.xml
to
/action.xml
.
struts-conifig.xml
file can now be retrieved by remote
clients at the following URL:
http://localhost/struts-example/struts-config.xml