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 Templates -> Tiles Problem 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 "Templates -> Tiles Problem" Watch "Templates -> Tiles Problem" New topic

Templates -> Tiles Problem

koray yersel

Joined: May 24, 2005
Posts: 2
i have to update the struts version of an old application. I have seen that <template: tag deprecaeted is, and i have used tiles instead. everything works fine expcept a little Problem.

It's about these jsp's:


<html:html locale="true">
<tiles:insert template='/jsp/MainTemplate.jsp'>
<tiles: put name='title' direct='true'>
Welcome to MOC
</tiles: put>
<tiles: put name='header' content='/jsp/Header.jsp' />
<tiles: put name="headline" direct="true">
Welcome to MOC
</tiles: put>
<tiles: put name='content' content='/jsp/StartMocViewContent.jsp'/>



<tr> <td height="19"></td></tr>
<tr> <td height="19" class="hl1">MOC</td></tr>
<tr> <td height="21" class="hl3" valign="bottom"><tiles:get name="headline"/></td></tr>
<tr> <td height="19"></td></tr>

The first page has to show "MOC" and then "Welcome to MOC" but I didn't manage to do that. The page shows only "MOC" so i guess there is a problem with <td height="21" class="hl3" valign="bottom"><tiles:get name="headline"/></td>.
I have only renamed template's to tiles's. It's interesting ,that it was working with the older version, but not with new version, so with the tiles-tag. any help? do i have to change something else for template-> tiles. thanx in advance.
koray yersel

Joined: May 24, 2005
Posts: 2
problem solved. i tried to delete my post. but i could'nt. sorry fot the mess
I agree. Here's the link:
subject: Templates -> Tiles Problem
Similar Threads
confusion on struts tile
Struts2: Alternative to tiles?
Struts Tiles Inheritance problem
Tiles in struts?
Access resources from jsp without using "bean:message" tag