• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Multiple Tiles

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my application we have 3(A,B and C) regions . When user logs in page will be displyed asking to select the regions. Once the user selects the region depending upon the selected region it will be forwarded to the Homepage i.e forwarded to the same homePage.jsp. After login title will be shown as "XYZ Application A" if the user selects the region A. This we are doing using the Tiles. Now if user selects the B region it should show "XYZ Application B" using the diff tiles similarly for the region C also. Here i need to use 3 diff tiles in my application. And i need to use these tiles depending upon he region selected.

Please suggest me how to implement these multiple tiles in struts.


Thanks in Advance

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you clarify one thing that based on your selection does the entire tile layout changes or only the title?

If only your title changes then just pass the selected layout in a session and display in title. If entire layout changes then you have to approach it with multiple tile definition for each layout and based on the selection forward to the correct tile.

ex.

tileDefA -> has Left Hand Navigation
tileDefB -> Has a Right Hand Navigation
tileDefC -> Has header based navigation

Then you will have 3 different tile layouts and based on user selection we can have the correct tile layout selected in the struts-config.
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic