This is struts related question itself. using displaytag too.

I created an obj whose attributes represent the row obj of a display table.

RowObj
type
navigate
total

<display:table name="${data}" id="rows" requestURI="PrepareEntry.do">
     <!--  Type -->
     <display:column titleKey="lbl.type">
            <a href="${rows.navigate}.do"> ${rows.Type} </a>
     </display:column>

      <!-- Total -->
      <display:column property="total" titleKey="lbl.total"/>
</display:table>

clicking on each element in first column should navigate to different JSP.
i.e
clicking on element in first row, first column   should go to JSP A
clicking on element in second row , first column should go to JSP B
clicking on element in third row , first column should go to JSP C

In Prepare Action on this jsp I am setting the navigate attribute of RowObj to "Preparexxxx.do"

this works fine the way I did.

But was curious to know if this is the right way to do? or is there a better way to do the same.

Thanks.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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

Reply via email to