• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Tiels tags are not processing

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic