Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-1927

[tiles] <put> element should be possible to specify type="page"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1.0
    • None
    • Tiles 2 Plugin
    • None
    • Operating System: other
      Platform: Other
    • 26134

    Description

      Hi, guys,

      I think that the following construction should be possible in tiles definition
      file (note new type="action" - now only "page", "definition" and "string" are
      possible):

      <definition name="disclaimer.def" extends="rootLayout">
      <put
      name="header" value="header?contentPage=disclaimer" type="action"/>
      <put
      name="footer" value="footer?contentPage=disclaimer" type="action"/>
      <put
      name="content" value="/WEB-INF/jsp/disclaimer.jsp"
      type="page"/>
      </definition>

      (kinda like we have "action" attribute in <html:link> tag,
      which is expanded by that tag into fully qualified path to the action, including ".do" of whatever
      specified in config file).

      Now I have to do the following (note suffix ".do" in both header and
      footer, also I need to specify context):

      <definition name="disclaimer.def"
      extends="rootLayout">
      <put name="header" value="/header.do?contentPage=disclaimer"
      type="page"/>
      <put name="footer" value="/footer.do?contentPage=disclaimer"
      type="page"/>
      <put name="content" value="/WEB-INF/jsp/disclaimer.jsp"
      type="page"/>
      </definition>

      I frequently need to "put" actions, not just jsp, think
      others need too.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vspa@mail.ru Firepica
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: