File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Multiple Tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple Tiles " Watch "Multiple Tiles " New topic

Multiple Tiles

Uppala Srinivas

Joined: May 11, 2006
Posts: 8
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

Joined: Dec 01, 2008
Posts: 71
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.


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.

- Aditya Webservices Blog
I agree. Here's the link:
subject: Multiple Tiles
It's not a secret anymore!