I am new to using tiles and I am having a problem getting my definition defined in my 
tiles-defs.xml file to be displayed.

I have used the debugger to verify that the definition is being loaded when I access 
the action but
the page is not displaying.  I have checked the log and I am not getting any errors.

I am using Struts 1.1 on Weblogic Server 8.1

my tiles-defs.xml looks like this 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles 
Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
<tiles-definitions>
  <definition name=".css.main" path="/tiles/layout/Base.jsp">
    <put name="title" value="Privacy Office" />
    <put name="header" value="/tiles/header.jsp" />
    <put name="body" value="/tiles/main.jsp" />
    <put name="footer" value="/tiles/footer.jsp" />
  </definition>
</tiles-definitions>

my layout jsp is 

<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<tiles:useAttribute name="title"/>
<tiles:get page="header"/>
<tiles:get page="body"/>
<tiles:get page="footer"/>

my action in my struts-config.xml looks like

<action path="/showMain" type="nz.govt.justice.css.ShowMainAction" name="userData" 
scope="request" unknown="false" validate="false">
        <forward name="success" path=".css.main" redirect="false"/>
</action>

and my plugin config looks like 

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

Any help would be appreciated.

Thanks

Nic.

====================================================================================

This e-mail message and attachments do not necessarily reflect the views of 
the New Zealand Ministry of Justice and may contain 
information that is confidential and may be subject to legal privilege. If you 
are not the intended recipient, you are hereby notified that you must not use, 
disseminate, distribute or copy this e-mail message or its attachments. If you 
received this message in error, please notify the Ministry of Justice 
by telephone (call collect: 00-64-4-918-8800) or return the 
original message to us by e-mail, and destroy any copies.
Thank you.

====================================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to