You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by di...@apache.org on 2001/07/17 23:33:25 UTC

cvs commit: xml-cocoon2/xdocs faq.xml

dims        01/07/17 14:33:25

  Modified:    xdocs    Tag: cocoon_20_branch faq.xml
  Log:
  Added faq on how to add your own .roles file.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.3 +42 -8     xml-cocoon2/xdocs/faq.xml
  
  Index: faq.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/xdocs/faq.xml,v
  retrieving revision 1.1.1.1.2.2
  retrieving revision 1.1.1.1.2.3
  diff -u -r1.1.1.1.2.2 -r1.1.1.1.2.3
  --- faq.xml	2001/06/16 05:43:55	1.1.1.1.2.2
  +++ faq.xml	2001/07/17 21:33:24	1.1.1.1.2.3
  @@ -97,28 +97,32 @@
       What are the steps to pre-compile the sitemap and XSP's?
     </question>
     <answer>
  -    <ol>
  +    <ul>
         <li>Set the "work-directory" parameter in web.xml as follows:
  -<code>
  +      </li>
  +    </ul>
  +<source>
     <![CDATA[
         <init-param>
          <param-name>work-directory</param-name>
          <param-value>WEB-INF/classes</param-value>
         </init-param>
     ]]>
  -</code>
  -      </li>
  +</source>
  +    <ul>
         <li>Set the auto-reload to false in your sitemap.xmap as follows:
  -<code>
  +      </li>
  +    </ul>
  +<source>
     <![CDATA[
         <parameter name="auto-reload" value="false"/>
     ]]>
  -</code>
  -      </li>
  +</source>
  +    <ul>
         <li>Use "-Dcompile.xsp=yes" in your build command line when you are
           building your WAR file.
         </li>
  -    </ol>
  +    </ul>
     </answer>
   </faq>
   <faq>
  @@ -163,6 +167,36 @@
      config.sys (and restart):
      shell=c:\command.com /E:4096 /P
     </p>
  + </answer>
  +</faq>
  +<faq>
  + <question>
  +  How do i setup my own .roles file?
  + </question>
  + <answer>
  +  <p>
  +   In cocoon.xconf you can specify your my.roles file as follows:
  +  </p>
  +<source>
  +  <![CDATA[
  +   ...
  +   <cocoon version="2.0" user-roles="WEB-INF/my.roles">
  +   ...
  +  ]]>
  +</source>
  +  <p>
  +   And create a new file my.roles in WEB-INF directory with
  +  </p>
  +<source>
  +  <![CDATA[
  +   <?xml version="1.0"?>
  +   <role-list>
  +   <role name="org.apache.cocoon.components.jsp.JSPEngine"
  +       shorthand="jsp-engine"
  +       default-class="org.apache.cocoon.components.jsp.JSPEngineImplWLS"/>   
  +   </role-list>
  +  ]]>
  +</source>
    </answer>
   </faq>
   </faqs>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org