You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nathan Coast <na...@codeczar.com> on 2003/07/13 14:12:19 UTC

module / tiles problems

Hi,

I tried setting up a web application with configuration files.

<init-param>
<param-name>config</param-name> 
<param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config-logweb.xml</param-value>
</init-param>

both referred to their own tiles-defs files with tiles plugins

   <plug-in className="org.apache.struts.tiles.TilesPlugin" >
     <set-property property="definitions-config" 
value="/WEB-INF/tiles-defs.xml" />
     <set-property property="definitions-parser-validate" value="true" />
     <set-property property="moduleAware" value="false" />
   </plug-in>

and

   <plug-in className="org.apache.struts.tiles.TilesPlugin" >
     <set-property property="definitions-config" 
value="/WEB-INF/tiles-defs-logweb.xml" />
     <set-property property="definitions-parser-validate" value="true" />
     <set-property property="moduleAware" value="false" />
   </plug-in>

the tiles-defs were only loaded for the file listed in the first config 
file (struts-config.xml)

Am I doing something wrong?

thanks
Nathan


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: module / tiles problems

Posted by Sergey Smirnov <si...@eltegra.ru>.
According snap-shot of your web.xml, you do not use two modules. You have
only one default module and the second definition for tiles plugin
overwrites the first one.
If you realy want to have two modules you have to use the following in your
web.xml:

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/logweb</param-name>
<param-value>/WEB-INF/struts-config-logweb.xml</param-value>
</init-param>


"Nathan Coast" <na...@codeczar.com> wrote in message
news:3F114CA3.3050203@codeczar.com...
> Hi,
>
> I tried setting up a web application with configuration files.
>
> <init-param>
> <param-name>config</param-name>
>
<param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config-logweb.xml</p
aram-value>
> </init-param>
>
> both referred to their own tiles-defs files with tiles plugins
>
>    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>      <set-property property="definitions-config"
> value="/WEB-INF/tiles-defs.xml" />
>      <set-property property="definitions-parser-validate" value="true" />
>      <set-property property="moduleAware" value="false" />
>    </plug-in>
>
> and
>
>    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>      <set-property property="definitions-config"
> value="/WEB-INF/tiles-defs-logweb.xml" />
>      <set-property property="definitions-parser-validate" value="true" />
>      <set-property property="moduleAware" value="false" />
>    </plug-in>
>
> the tiles-defs were only loaded for the file listed in the first config
> file (struts-config.xml)
>
> Am I doing something wrong?
>
> thanks
> Nathan




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: module / tiles problems

Posted by Nathan Coast <na...@codeczar.com>.
thanks,

unfortunately still doesn't work

Erez Efrati wrote:
> Just by looking and I am new to tiles...
> That the  
> 
> <set-property property="moduleAware" value="false" />
> 
> The VALUE should be set to TRUE not false.
> 
> Hope it helps,
> Erez
> 
> -----Original Message-----
> From: Nathan Coast [mailto:nathan@codeczar.com] 
> Sent: Sunday, July 13, 2003 2:12 PM
> To: struts-user
> Subject: module / tiles problems
> 
> Hi,
> 
> I tried setting up a web application with configuration files.
> 
> <init-param>
> <param-name>config</param-name> 
> <param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config-logweb.xm
> l</param-value>
> </init-param>
> 
> both referred to their own tiles-defs files with tiles plugins
> 
>    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>      <set-property property="definitions-config" 
> value="/WEB-INF/tiles-defs.xml" />
>      <set-property property="definitions-parser-validate" value="true"
> />
>      <set-property property="moduleAware" value="false" />
>    </plug-in>
> 
> and
> 
>    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>      <set-property property="definitions-config" 
> value="/WEB-INF/tiles-defs-logweb.xml" />
>      <set-property property="definitions-parser-validate" value="true"
> />
>      <set-property property="moduleAware" value="false" />
>    </plug-in>
> 
> the tiles-defs were only loaded for the file listed in the first config 
> file (struts-config.xml)
> 
> Am I doing something wrong?
> 
> thanks
> Nathan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: module / tiles problems

Posted by Erez Efrati <er...@netmedia.net.il>.
Just by looking and I am new to tiles...
That the  

<set-property property="moduleAware" value="false" />

The VALUE should be set to TRUE not false.

Hope it helps,
Erez

-----Original Message-----
From: Nathan Coast [mailto:nathan@codeczar.com] 
Sent: Sunday, July 13, 2003 2:12 PM
To: struts-user
Subject: module / tiles problems

Hi,

I tried setting up a web application with configuration files.

<init-param>
<param-name>config</param-name> 
<param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config-logweb.xm
l</param-value>
</init-param>

both referred to their own tiles-defs files with tiles plugins

   <plug-in className="org.apache.struts.tiles.TilesPlugin" >
     <set-property property="definitions-config" 
value="/WEB-INF/tiles-defs.xml" />
     <set-property property="definitions-parser-validate" value="true"
/>
     <set-property property="moduleAware" value="false" />
   </plug-in>

and

   <plug-in className="org.apache.struts.tiles.TilesPlugin" >
     <set-property property="definitions-config" 
value="/WEB-INF/tiles-defs-logweb.xml" />
     <set-property property="definitions-parser-validate" value="true"
/>
     <set-property property="moduleAware" value="false" />
   </plug-in>

the tiles-defs were only loaded for the file listed in the first config 
file (struts-config.xml)

Am I doing something wrong?

thanks
Nathan


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org