[jboss-as7-dev] Web static content from external files, such as: img, css, js, html

Douglas Matheus de Souza douglas.matheus at anbima.com.br
Fri Sep 2 14:27:23 EDT 2011


   Hello friends, I need your help.

   How can I get static content from external files, such as: img, css, js, html to my Web application on JBoss 7 (standalone.xml), as has been done on server.xml of older versions?

Compare

        <!-- Aplicacao myweb -->
        <Context path="/myweb/html" appBase=""
              docBase="${jboss.server.home.dir}/estatico/myweb/html"
              debug="99" reloadable="true">
        </Context>
        <Context path="/myweb/ajuda" appBase=""
              docBase="${jboss.server.home.dir}/estatico/myweb/ajuda"
              debug="99" reloadable="true">
        </Context>
        <Context path="/myweb/css" appBase=""
              docBase="${jboss.server.home.dir}/estatico/myweb/css"
              debug="99" reloadable="true">
        </Context>
        <Context path="/myweb/img" appBase=""
              docBase="${jboss.server.home.dir}/estatico/myweb/img"
              debug="99" reloadable="true">
        </Context>
        <Context path="/myweb/js" appBase=""
              docBase="${jboss.server.home.dir}/estatico/myweb/js"
              debug="99" reloadable="true">
        </Context>

But, how should be done in standalone.xml ?

<
  ???
/>

Thank you in advance

► Douglas Matheus





More information about the jboss-as7-dev mailing list