File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Templates -> Tiles Problem

 
koray yersel
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
problem solved. i tried to delete my post. but i could'nt. sorry fot the mess
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic