This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Multiple Tiles Definition files OR passing parameters to tiles.xml at runtime

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
Is there any way to define a new tiles definition file other than the tiles.xml file at runtime (say tiles2.xml) and use it.
I want to create a tiles2.xml using JAVA when a action is called.

OR.

CAn I pass the filename.jsp as a prameter to tiles.xml during runtime.

Here is what I am trying to do.

There are 50 menus. When any of the menu is clicked, parameters regarding the menu name are passed through an action to a JAVA class. The class checks and finds which file to open. Now, either I can pass that value to tiles.xml or create a new tiles definition file.

Please help.
Thanks,
Abhishek
 
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Is there any way to define a new tiles definition file other than the tiles.xml file at runtime (say tiles2.xml) and use it.
I want to create a tiles2.xml using JAVA when a action is called.



Yes, Divide the tiles definitions according to the module in your project (you can have multiple of files). You need to define all the files in web.xml file.

These definitions doesn't read at runtime.
 
Abhishek More
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You for replying!

Could you help me with the coding for the same (in web.xml)

Also, if it's not possible to do it at runtime.. how can my problem be solved.. suggest please !
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
    Bookmark Topic Watch Topic
  • New Topic