This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Struts and the fly likes 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 "tiles" Watch "tiles" New topic



Joined: Nov 12, 2003
Posts: 4
I have tiles.xml file where i have define all the attributes under the <tiles-definition> tag
I have done the tile plugin in strutsconfig file also
Now how to invoke a jsp which has used the layout which is defined
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

Welcome to JavaRanch! Please edit your profile and change your publicly displayed name to comply with the JavaRanch Naming Policy.
Thanks for you cooperation.
Re tiles, you need to define an action mapping or forward that has the tiles name as its path.

Junilu - [How to Ask Questions] [How to Answer Questions]
Eric Sexton
Ranch Hand

Joined: Sep 12, 2003
Posts: 133
In the struts config action tag, the path of the forward should correspond to one of your tiles definitions.

Here's the definition:

Is this what you meant?
vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
I have done the same thing..
but im getting the error like "file not found @changedisplay##"
i think container is viewing it ( path="@changedi##" in struts-config.xml ) as a file not as a tile definition..
am i right???
I agree. Here's the link:
subject: tiles
jQuery in Action, 3rd edition