This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts Tiles and URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Tiles and URL" Watch "Struts Tiles and URL" New topic

Struts Tiles and URL

Todd Nine

Joined: Oct 28, 2004
Posts: 5
Hi all, I have a struts question I was unable to find the answer for.

I am currently using tiles to lay out my site. I have the standard main.layout, then the groups.layout, application.layout, and others all extend main.layout. Is there a way that I can call a tile layout definition from a url without writing a generic action that just forwards to the tile? For instance if the user logs in, they can edit their profile. Their information is minimal, so it's currently being stored in the session. Is it possible to do something similar to the following?

I though this should take me to the profile.layout definition and display the corresponding JSP code, but it just gives me this error.

Or do I have to create an action, that simply takes the name of the forward provided as a parameter and forwards to it?

Attached is my tiles.xml file

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Struts Tiles and URL
Similar Threads
Tiles question
Change color of clicked link - tiles
Struts Tiles Inheritance problem
Problem with html:link and target
Tiles problem