You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Natalie D Rassmann <na...@lmco.com> on 2003/06/26 12:29:21 UTC

Tiles Tab to Actions

I am using the Tiles Tab Layout and I need the links to go to an action
rather than a jsp page?  Does anyone know how I go about do that.  Here
is my Tiles Def for the layout....

  <!-- tabs page -->
    <definition name="prtr.pr.tabs.page" extends="prtr.default">
       <put name="body-content" value="prtr.tabs.body"/>
    </definition>

    <!-- body using tabs -->
    <definition name="prtr.tabs.body"
path="/jsp/prtr/layouts/tabsLayout.jsp">
       <put name="selectedIndex" value="0"/>
       <put name="parameterName" value="selected"/>
       <putList name="tabList">
          <item value="Description"
link="/jsp/prtr/tabs/prDescription.jsp"/>
          <item value="Size"         link="/jsp/prtr/tabs/size.jsp"/>
          <item value="Checklists"
link="/jsp/prtr/tabs/checklists.jsp"/>
          <item value="Meetings"
link="/jsp/prtr/tabs/meetings.jsp"/>
          <item value="Defects"      link="/jsp/prtr/tabs/defects.jsp"/>

          <item value="Comments"
link="/jsp/prtr/tabs/comments.jsp"/>
          <item value="Distribution"
link="/jsp/prtr/tabs/distribution.jsp"/>
          <item value="Review"       link="/jsp/prtr/tabs/review.jsp"/>
          <item value="TestTab"
link="/promis/action/createPeerRecord"/>
       </putList>
    </definition>

Actually, I need it to go to a particular JSP (for example I need the
Size tab to go to the Size JSP) but through an action rather than a
link....

Can anyone help?

Thanks,

Natalie