Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tiels tags are not processing

 
Suneesh Raman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have following entries

1. in web.xml
<taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
2. struts-config.xml


<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
<set-property property="moduleAware" value="true" />
<set-property property="definitions-parser-validate" value="true" />
</plug-in>

3. tiles-defs.xml

<definition name="msgDef" path="/msgtilelayout.jsp">
<put name="header" value="/header.jsp"/>
<put name="footer" value="/footer.jsp"/>
<put name="left" value="/left.jsp"/>
<put name="content" type="string"/>
<put name="title" value="Discussion Forum"/>
</definition>

4. My jsp is

<%@taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/msgtags" prefix="msg" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>

<tiles:insert definition="msgDef">
<tiles ut name="title" value="Messages"/>
<tiles ut name="content" type="string">

<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td></td>
</tr>
</table>

</tiles ut>
</tiles:insert>

But the tiles tags are not getting processed .
When I am taking the source of the browser I am getting

<tiles:insert definition="msgDef">
<tiles ut name="title" value="Messages"/>
<tiles ut name="content" type="string">

<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><table>



in the source

Any one has any idea why the tiles tags are not getting processed

Thanks
Suneesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic