struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Natalie D Rassmann <natalie.d.rassm...@lmco.com>
Subject Tiles Tab Link ?
Date Fri, 27 Jun 2003 10:12:35 GMT
Hi,

I have a Tiles Definition file that contains a tab layout.  In the tab
layout, I want to use actions as links rther than linking directly to
jsp files.  I can get this to work, my only problem is that the action I
am linking to is a dispatchAction and I need to include that parameter
on the link line.  Here is an excerpt from my tiles definition file:

 <!-- 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="/createPeerRecordTestTab.do"/>
          <item value="TestDispatchTab"
link="/reviewRecordAction.do?dispatchAction=createPeerRec"/>
          <item value="Test"         link="/reviewRecordAction.do"/>
       </putList>
    </definition>

I want all of my links to look like the TestDispatchTab link.  However,
my problem is that I can't hardcode dispatchAction like that.  I need
the dispatchAction to be whatever it is....  I store the dispatchAction
string in the request.  So here is my question, How do I do this...  Can
anyone help???

Thanks,

Natalie


Mime
View raw message