• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic