You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by tjahfe <ti...@hotmail.com> on 2008/02/12 00:59:51 UTC
Controller Configuration
Hi,
Is it possible to have more than one controller configuration definition in
struts-config.xml?
Currently, I have the following definition:
<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
nocache="true"/>
and I would like to set the default maxFileSize...
Should I add the new setting as part of the current definition, ie:
<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
nocache="true" maxFileSize="2G"/>
or should I add the new setting as a new definition, ie:
<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
nocache="true"/>
<controller maxFileSize="2G"/>
thank you in advance,
FT
--
View this message in context: http://www.nabble.com/Controller-Configuration-tp15423670p15423670.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Controller Configuration
Posted by tjahfe <ti...@hotmail.com>.
I initially tried:
<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
nocache="true"/>
<controller maxFileSize="2G"/>
which gave me a compilation error, but still let me run the application...
and that's why I wasnt sure and asked to confirm.
Ok, thanks a lot for your help :)
Laurie Harper wrote:
>
> tjahfe wrote:
>> Hi,
>>
>> Is it possible to have more than one controller configuration definition
>> in
>> struts-config.xml?
>
> No, the DTD for struts-config.xml specifies only one is allowed.
>
>> Currently, I have the following definition:
>> <controller
>> processorClass="org.apache.struts.tiles.TilesRequestProcessor"
>> nocache="true"/>
>>
>> and I would like to set the default maxFileSize...
>>
>> Should I add the new setting as part of the current definition, ie:
>> <controller
>> processorClass="org.apache.struts.tiles.TilesRequestProcessor"
>> nocache="true" maxFileSize="2G"/>
>
> Yes, that should work. Did you try it?
>
>> or should I add the new setting as a new definition, ie:
>> <controller
>> processorClass="org.apache.struts.tiles.TilesRequestProcessor"
>> nocache="true"/>
>> <controller maxFileSize="2G"/>
>
> That won't work, and should cause an error during startup, since it
> violates the DTD.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Controller-Configuration-tp15423670p15425619.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Controller Configuration
Posted by Laurie Harper <la...@holoweb.net>.
tjahfe wrote:
> Hi,
>
> Is it possible to have more than one controller configuration definition in
> struts-config.xml?
No, the DTD for struts-config.xml specifies only one is allowed.
> Currently, I have the following definition:
> <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> nocache="true"/>
>
> and I would like to set the default maxFileSize...
>
> Should I add the new setting as part of the current definition, ie:
> <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> nocache="true" maxFileSize="2G"/>
Yes, that should work. Did you try it?
> or should I add the new setting as a new definition, ie:
> <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> nocache="true"/>
> <controller maxFileSize="2G"/>
That won't work, and should cause an error during startup, since it
violates the DTD.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org