Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Struts Tiles and URL

Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

permaculture is giving a gift to your future self. After reading this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic