File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!