In your output:

<c:if test="${custs.name != null}" >
   <c:out value="${custs.name}"/>
</c:if>

I would wrap this with an html:link. Something like this (using JSTL
1.1) 

<c:if test="${custs.name != null}" >
<html:link action="cust.do" paramId="custID" paramProperty="custID"
name="Form1.customers" paramScope="session">${custs.name}</html:link>
</c:if>

And then get rid of the href attribute from this column. 

Randy Burgess

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of fea
jabi
Sent: Friday, December 08, 2006 9:24 AM
To: [email protected]
Subject: [displaytag-user] put value to session

<display:table name="sessionScope.Form1.customers" id="custs" 
requestURI="home.do" class="single-line-table" defaultsort="8" 
defaultorder="descending" pagesize="6">

     <display:column titleKey="lbl.name" sortable="true" href="cust.do" 
sortProperty="name">
         <c:if test="${custs.name != null}" >
              <c:out value="${custs.name}"/>
         </c:if>
     </display:column>

     <display:column titleKey="lbl.custid" sortable="true" 
property="custID"/>

....................
....................

</display:table>



When the user clicks on the link of first column i.e customer name, have
to 
put the corresponding custID in session which is in the second column.


how to do this?


Thanks.

_________________________________________________________________
Visit MSN Holiday Challenge for your chance to win up to $50,000 in
Holiday 
cash from MSN today!  
http://www.msnholidaychallenge.com/index.aspx?ocid=tagline&locale=en-us


------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to