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 how to invoke tiles definition from JSP 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 "how to invoke tiles definition from JSP" Watch "how to invoke tiles definition from JSP" New topic
Author

how to invoke tiles definition from JSP

santosh gunake
Greenhorn

Joined: May 20, 2006
Posts: 6
Hello

How to invoke the different tiles definitions from a JSP page
Travis Hein
Ranch Hand

Joined: Jun 06, 2006
Posts: 161
I gues you could use conditional statements around the tiles tags.

I based this example off of
http://struts.apache.org/1.x/struts-tiles/examples.html




though i would use the jstl <c:if> or <c:choose> tags instead of the scriplet conditionals.

and usually I create a tiles-defs.xml and put definitions there and have it installed with struts with the tiles request processor. (see link above to the tiles documentation site) and if i do any dynamic switching in the jsp, it would then be with the <tiles :p ut> tags within a conditional construct.
[ July 03, 2006: Message edited by: Travis Hein ]

Error: Keyboard not attached. Press F1 to continue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to invoke tiles definition from JSP
 
Similar Threads
tiles
Why Struts?
how to invoke
How to call a jsp from a servlet
struts2: how to invoke a method from the xml conf file. what shoud be the type?