Hi,

I used decorator class in the display tag to get the display in the format I want. For the first time its coming good and exporting correctly. But it is giving problem when I send a mail on clicking the link in the email column. After wards even for export options, the link is getting activated ie whenever I click on PDF / Excel, first it is sending the mail and then exporting. I dont want this to be happen. Please help me where I am going wrong.

Below I am giving decorator class, display table and view source of the jsp before sending the mail and after sending the mail.

My Decorator class:

public class LogisticReportDecorator extends TableDecorator {
public String getCemail(){

LogisticReportVO lrVo = (LogisticReportVO)getCurrentRowObject();
Integer ldays = lrVo.getLapseddays();
String email = lrVo.getEmail();
if(ldays>90){

return "<a href=\"../GetLogisticReport.do?email=" + email + "&amp;client="+lrVo.getClientname()+"&amp;ldays="+ ldays+"&amp;projectid="+lrVo.getProjectid()+"&amp; drdate="+lrVo.getDiskreturndate()+"&amp;bcode="+lr Vo.getHddBarcode()+"\">"+email+"</a>";
}else{
return email;
}
}
}

My table declaration is:

<display:table id="data" name="logisticreport"
requestURI="/GetLogisticReport.do" pagesize="10" export="true"
decorator="com.scrabble.project.model.LogisticRepo rtDecorator">

<display:column property="hddBarcode" title="Barcode"
sortable="true" style="text-align:center;" />
<display:column property="clientname" title="Client"
sortable="true" style="text-align:center;" />
<display:column property="diskreturndate" title="HDD Return date"
sortable="true" style="text-align:center;" />

<display:column property="cemail" title="Email" media="html"/>
<display:column property="email" title="Email" media="pdf excel"/>


<display:setProperty name="export.pdf" value="true" />
<display:setProperty name="export.pdf.filename" value="LogisticReport.pdf" />
<display:setProperty name="export.excel.filename" value="LogisticReport.xls" />
<display:setProperty name="export.xml" value="false" />
<display:setProperty name="export.csv" value="false" />
<display:setProperty name="export.xls" value="false" />
</display:table>


view source before sending mail:

<table id="data">
<thead>
<tr>
<th class="sortable">
Barcode</th>
<th class="sortable">
Client</th>
<th class="sortable">
Submission Date</th>
<th class="sortable">
HDD Return date</th>
<th class="sortable">
Lapsed Days</th>

<th>Email</th></tr></thead>
<tbody>
<tr class="odd">
<td style="text-align:center;">121</td>
<td style="text-align:center;">HyderabadClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>raaja.g@krishct.com</td></tr>
<tr class="even">

<td style="text-align:center;">122</td>
<td style="text-align:center;">ChennaiClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>sureshreddy@krishct.com</td></tr>

<tr class="odd">
<td style="text-align:center;">123</td>
<td style="text-align:center;">MumbaiClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>raaja.g@krishct.com</td></tr>
<tr class="even">
<td style="text-align:center;">125</td>
<td style="text-align:center;">MumbaiClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>raaja.g@krishct.com</td></tr>
<tr class="odd">
<td style="text-align:center;">126</td>
<td style="text-align:center;">HyderabadClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>a href="../GetLogisticReport.do?email=raaja.g@krishct.com&cli ent=HyderabadClient&ldays=93&projectid=6&drdate=02/31/2011&bcode=126">raaja.g@krishct.com /a</td></tr>

<tr class="even">
<td style="text-align:center;">129</td>
<td style="text-align:center;">ChennaiClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>sureshreddy@krishct.com</td></tr>
<tr class="odd">
<td style="text-align:center;">124</td>
<td style="text-align:center;">ChennaiClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>sureshreddy@krishct.com</td></tr></tbody></table><div class="exportlinks">Export To:
a href="/scrabble/GetLogisticReport.do?6578706f7274=1&pname=6&projec tid=6&projectid=&d-49216-e=2">Excel /a |
a href="/scrabble/GetLogisticReport.do?6578706f7274=1&pname=6&projec tid=6&projectid=&d-49216-e=5">PDF /a</div></div>
</center>
</td>
</tr>

</table>


view source after sending the mail:


<table id="data">
<thead>
<tr>
<th class="sortable">
Barcode</th>
<th class="sortable">
a href="/scrabble/GetLogisticReport.do?d-49216-o=2&client=HyderabadClient&d-49216-s=1&email=raaja.g%40krishct.com&bcode=126&ldays=93 &drdate=02%2F31%2F2011&projectid=6">Client /a</th>
<th class="sortable">
Submission Date</th>

<th class="sortable">
HDD Return date</th>
<th class="sortable">
Lapsed Days</th>
<th>Email</th></tr></thead>
<tbody>
<tr class="odd">
<td style="text-align:center;">121</td>
<td style="text-align:center;">HyderabadClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>raaja.g@krishct.com</td></tr>
<tr class="even">
<td style="text-align:center;">122</td>
<td style="text-align:center;">ChennaiClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>sureshreddy@krishct.com</td></tr>

<tr class="odd">
<td style="text-align:center;">123</td>
<td style="text-align:center;">MumbaiClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>raaja.g@krishct.com</td></tr>
<tr class="even">
<td style="text-align:center;">125</td>
<td style="text-align:center;">MumbaiClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>raaja.g@krishct.com</td></tr>

<tr class="odd">
<td style="text-align:center;">126</td>
<td style="text-align:center;">HyderabadClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>a href="../GetLogisticReport.do?email=raaja.g@krishct.com&cli ent=HyderabadClient&ldays=93&projectid=6&drdate=02/31/2011&bcode=126">raaja.g@krishct.com /a </td></tr>
<tr class="even">
<td style="text-align:center;">129</td>
<td style="text-align:center;">ChennaiClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>sureshreddy@krishct.com</td></tr>

<tr class="odd">
<td style="text-align:center;">124</td>
<td style="text-align:center;">ChennaiClient</td>
<td style="text-align:center;">06/01/2011</td>
<td>sureshreddy@krishct.com</td></tr></tbody></table><div class="exportlinks">Export To:
a href="/scrabble/GetLogisticReport.do?client=HyderabadClient&email= raaja.g%40krishct.com&6578706f7274=1&bcode=126&lda ys=93&drdate=02%2F31%2F2011&projectid=6&d-49216-e=2">Excel /a|
a href="/scrabble/GetLogisticReport.do?client=HyderabadClient&email= raaja.g%40krishct.com&6578706f7274=1&bcode=126&lda ys=93&drdate=02%2F31%2F2011&projectid=6&d-49216-e=5">PDF a</div></div>

</center>
</td>
</tr>
</table>


The table export link is getting modified. I want whenever I click on export options only the data should get export not to send the mail.

Please help me in solving this.

--raaja.g