Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Tiles

 
Uppala Srinivas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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

 
Aditya Keyal
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic