• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts & tiles - passing a file name using tiles

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
We are presently using struts 1.1
We are also using tiles .

In our Tiles layout - we have a common header , left navigation and a footer
The main body changes as per the page requested.

Previously we had a screen specific JSP - just a wrapper JSP
This jsp would include the common template and we would pass the actual body required.

Here is what we were doing previously -

<jsp:param name="myBody" value="loginBody.jsp" />
</jsp:include>

This was what we were doing previously .

Now when I am using tiles here is what I am doing ( in tiles.xml ) :

</definition>

Here is the common Template definition



The above code is an example
How do I dynamically pick the JSP in the common template and show it ?

Is there a possibility in tiles to pass a jsp to the other tile similar to <jsp:inlcude /> & <jsp:param /> ?

Thanks in advance ,
anagha
 
Ranch Hand
Posts: 111
Mac Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you can do here is put the jsp file in some property entry and use same <tiles ut> to pick it. like



now you need to change the jsp page in resource bundle only.
 
reply
    Bookmark Topic Watch Topic
  • New Topic