<?xml version="1.0"?>
<!--
    $Id$

    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
   
         http://www.apache.org/licenses/LICENSE-2.0
   
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<document url="installation-sas.html">

    <properties>
        <title>The Struts Framework Project - Installation - Silverstream
            Application Server</title>
    </properties>

    <body>
        <section name="6.2 Installation" href="installation">
            <subsection name="Installing Struts with your servlet container"
                        href="Containers">

                <h4 id="sas">SilverStream Application Server 3.7.1 and
                    later</h4>

                <ul>
                    <li>Start the SilverStream application server.</li>
                    <li>Create an XML deployment plan for the &quot;
                        <code>struts-example.war</code>
                        &quot;
                        application. Call the file &quot;
                        <code>struts-example-depl-plan.xml</code>
                        &quot;.
                        You can use the following contents for the file
                    </li>
                </ul>

                <hr/>

                <p>----- cut here -----</p>

                <pre>
                    &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
                    &lt;!DOCTYPE warJarOptions PUBLIC
                    &quot;-//SilverStream Software, Inc.//DTD J2EE WAR
                    Deployment Plan//EN&quot;
                    &quot;deploy_war.dtd&quot;&gt;
                    &lt;warJarOptions&gt;
                    &lt;warJar&gt;
                    &lt;warJarName&gt;struts-example.war&lt;/warJarName&gt;
                    &lt;isEnabled&gt;true&lt;/isEnabled&gt;
                    &lt;urls&gt;&lt;el&gt;struts-example&lt;/el&gt;&lt;/urls&gt;
                    &lt;/warJar&gt;
                    &lt;/warJarOptions&gt;
                </pre>

                <p>----- cut here -----</p>

                <hr/>

                <p>Create an XML deployment plan for the &quot;
                    <code>struts-documentation.war</code>
                    &quot;
                    application. Call the file &quot;struts-documentation-depl-plan.xml&quot;.
                    You can use the following contents for the file:
                </p>

                <hr/>
                <p>----- cut here -----</p>

                <pre>
                    &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
                    &lt;!DOCTYPE warJarOptions PUBLIC
                    &quot;-//SilverStream Software, Inc.//DTD J2EE WAR
                    Deployment Plan//EN&quot;
                    &quot;deploy_war.dtd&quot;&gt;
                    &lt;warJarOptions&gt;
                    &lt;warJar&gt;
                    &lt;warJarName&gt;struts-documentation.war&lt;/warJarName&gt;
                    &lt;isEnabled&gt;true&lt;/isEnabled&gt;
                    &lt;urls&gt;&lt;el&gt;struts-documentation&lt;/el&gt;&lt;/urls&gt;
                    &lt;/warJar&gt;
                    &lt;/warJarOptions&gt;
                </pre>

                <p>----- cut here -----</p>
                <hr/>

                <p>Run the following &quot;
                    <code>SilverCmd DeployWAR</code>
                    &quot; commands to
                    deploy the applications. You can change 'localhost' to
                    whatever server you
                    are deploying to. You can change 'Silvermaster' to
                    whatever
                    database you are deploying to.
                </p>
                <ul>
                    <li>SilverCmd DeployWar localhost Silvermaster
                        struts-example.war -f
                        struts-example-depl-plan.xml</li>
                    <li>SilverCmd DeployWar localhost Silvermaster
                        struts-documentation.war -f
                        struts-documentation-depl-plan.xml</li>
                </ul>
                <hr/>
                <p>Back to
                    <a href="installation.html#Containers">Installation</a>
                </p>
            </subsection>
        </section>
    </body>
</document>
