It's not a secret anymore!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Templates -> Tiles Problem" Watch "Templates -> Tiles Problem" New topic
Author

Templates -> Tiles Problem

koray yersel
Greenhorn

Joined: May 24, 2005
Posts: 2
Hi,
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:

STARTMOCVIEW.JSP

<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'/>
</tiles:insert>
</html:html>

and

HEADER.JSP

<table>
<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>
</table>


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
Greenhorn

Joined: May 24, 2005
Posts: 2
problem solved. i tried to delete my post. but i could'nt. sorry fot the mess
 
wood burning stoves
 
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