You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "sherry (JIRA)" <ji...@apache.org> on 2007/03/28 10:23:51 UTC

[jira] Created: (TILES-145) Struts message-resources should be integrated into Tiles??

Struts message-resources should be integrated into Tiles??
----------------------------------------------------------

                 Key: TILES-145
                 URL: https://issues.apache.org/struts/browse/TILES-145
             Project: Tiles
          Issue Type: Improvement
            Reporter: sherry


Now I am using Tiles Inheritance between definitions.
============================================
<?XML version="1.0" encoding="ISO-8859-1"?>
<component-definitions>
    <definition name="baseDef" path="/layout.jsp">
        <put name="header" value="/header.jsp"/>
        <put name="footer" value="/footer.jsp"/>
        <put name="body" value=""/>
    </definition>
    <definition name="aDef" extends="baseDef">
        <put name="body" value="/aBody.jsp"/>
    </definition>
    <definition name="bDef" extends="baseDef">
        <put name="body" value="/bBody.jsp"/>
    </definition>
    <definition name="cDef" extends="baseDef">
        <put name="body" value="/cBody.jsp"/>
    </definition>
</component-definitions>
======================================

I won't want to insert nodes like "<tiles:insert/>" in my jsp files. But in my "layout.jsp", there is a line of code "<tiles:getAsString name="title"/>" which indicates the titles of different pages  and whose value comes from my Application.properties. 

So, I wonder if you find a way to set my title in the Tiles-def.xml according to Application.properties.




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TILES-145) Struts message-resources should be integrated into Tiles??

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli resolved TILES-145.
------------------------------------

    Resolution: Not A Problem

Don't use JIRA to ask questions.
This JIRA project refers to Tiles 2, but you seem to be using Struts 1 + Tiles 1, so probably you have to ask this kind of questions to the Struts Users mailing lists:
http://struts.apache.org/mail.html

Best regards.

> Struts message-resources should be integrated into Tiles??
> ----------------------------------------------------------
>
>                 Key: TILES-145
>                 URL: https://issues.apache.org/struts/browse/TILES-145
>             Project: Tiles
>          Issue Type: Improvement
>            Reporter: sherry
>
> Now I am using Tiles Inheritance between definitions.
> ============================================
> <?XML version="1.0" encoding="ISO-8859-1"?>
> <component-definitions>
>     <definition name="baseDef" path="/layout.jsp">
>         <put name="header" value="/header.jsp"/>
>         <put name="footer" value="/footer.jsp"/>
>         <put name="body" value=""/>
>     </definition>
>     <definition name="aDef" extends="baseDef">
>         <put name="body" value="/aBody.jsp"/>
>     </definition>
>     <definition name="bDef" extends="baseDef">
>         <put name="body" value="/bBody.jsp"/>
>     </definition>
>     <definition name="cDef" extends="baseDef">
>         <put name="body" value="/cBody.jsp"/>
>     </definition>
> </component-definitions>
> ======================================
> I won't want to insert nodes like "<tiles:insert/>" in my jsp files. But in my "layout.jsp", there is a line of code "<tiles:getAsString name="title"/>" which indicates the titles of different pages  and whose value comes from my Application.properties. 
> So, I wonder if you find a way to set my title in the Tiles-def.xml according to Application.properties.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TILES-145) Struts message-resources should be integrated into Tiles??

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli closed TILES-145.
----------------------------------


> Struts message-resources should be integrated into Tiles??
> ----------------------------------------------------------
>
>                 Key: TILES-145
>                 URL: https://issues.apache.org/struts/browse/TILES-145
>             Project: Tiles
>          Issue Type: Improvement
>            Reporter: sherry
>
> Now I am using Tiles Inheritance between definitions.
> ============================================
> <?XML version="1.0" encoding="ISO-8859-1"?>
> <component-definitions>
>     <definition name="baseDef" path="/layout.jsp">
>         <put name="header" value="/header.jsp"/>
>         <put name="footer" value="/footer.jsp"/>
>         <put name="body" value=""/>
>     </definition>
>     <definition name="aDef" extends="baseDef">
>         <put name="body" value="/aBody.jsp"/>
>     </definition>
>     <definition name="bDef" extends="baseDef">
>         <put name="body" value="/bBody.jsp"/>
>     </definition>
>     <definition name="cDef" extends="baseDef">
>         <put name="body" value="/cBody.jsp"/>
>     </definition>
> </component-definitions>
> ======================================
> I won't want to insert nodes like "<tiles:insert/>" in my jsp files. But in my "layout.jsp", there is a line of code "<tiles:getAsString name="title"/>" which indicates the titles of different pages  and whose value comes from my Application.properties. 
> So, I wonder if you find a way to set my title in the Tiles-def.xml according to Application.properties.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.