PDA

View Full Version : Multiple TilesConfigurer beans per application context??


curtney
Oct 4th, 2005, 03:50 PM
Greetings!!

Is it possible to have multiple tiles configurer (TilesConfigurer) declared, per application context? Currently, I have two dispatcher servlet declared in my web.xml file. For example:


<servlet>

<servlet-name>A</servlet-name>

<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

<load-on-startup>1</load-on-startup>

</servlet>

<servlet>

<servlet-name>B</servlet-name>

<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

<load-on-startup>1</load-on-startup>

</servlet>


A-servlett-xml has its own "tilesConfigurer" bean and B-servlet.xml has its own as well. Each loads its own separate tiles definitions

It seems that which ever one is declared first in my web.xml, that is the one that gets loaded. Is it possible to have both loaded and if so, how can I accomplish that?

Thanks,

Curtney

curtney
Oct 6th, 2005, 04:17 PM
So, I am guessing it is not possible to have multiple tiles configurer beans?

Curtney

curtney
Oct 17th, 2005, 01:40 PM
I know it is possible to have multiple tiles definitions. However, is it possible for me to have definitions configured by DispatcherServlet? I have two dispatcher servlet configured in my web.xml, and each depends on tiles to handle building views. Therefore, each has it own tiles configurer bean with its set of tiles definitions. However, only one set of definitions is loaded when my application starts up. Has anyone encountered this problem? If so, please share your solution.

It is very suprising no one has encountered this before, I guess, which shows tiles are not used to build relative complex apps. :?

_Curtney