Can i have two different tiles-def.xml in one spring application ,one of which will be selected by condition -


i have 2 tiles-def e.g tiles-def1.xml , tiles-def2.xml.

is possible pick 1 of tile-def files using sort of condition? example, like:

if (true) {     choose tiles-def1.xml } else {     choose tiles-def2.xml } 

you can supply path definition file external property (to spring java or xml configuration) based on environment application running (if use case). java configuration example:

@configuration @propertysource("classpath:/path/to/properties/app.properties") public class application {      @autowired environment environment;      @bean     public tilesconfigurer tilesconfigurer() {        tilesconfigurer tilesconfigurer = new tilesconfigurer();        tilesconfigurer.setdefinitions(environment.getproperty("pathtotilesfile"));        return tilesconfigurer;    }    .... } 

if not solution you, please provide more details use case.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -