Hi,

I followed the instructions and modified accordingly and got the display in
the format I want for the first time. But it is giving problem when I send a
mail on clicking the link. After wards even for export options the link is
getting attached and whenever I click on PDF / Excel first it sending the
mail and exporting. Where I am going wrong please tell me.

Below I am giving my modified display table and view source of the jsp
before sending the mail and after sending the mail.




My table declaration is: 

<display:table id="data" name="logisticreport" 
        requestURI="/GetLogisticReport.do" pagesize="10" export="true" 
        decorator="com.scrabble.project.model.LogisticReportDecorator"> 
        
        <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"/>
        <display:column property="email" title="Email" media="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">
/scrabble/GetLogisticReport.do?d-49216-o=2&amp;d-49216-s=0&amp;pname=6&amp;projectid=6&amp;projectid=
Barcode </th>
<th class="sortable">
/scrabble/GetLogisticReport.do?d-49216-o=2&amp;d-49216-s=1&amp;pname=6&amp;projectid=6&amp;projectid=
Client </th>
<th class="sortable">
/scrabble/GetLogisticReport.do?d-49216-o=2&amp;d-49216-s=2&amp;pname=6&amp;projectid=6&amp;projectid=
Submission Date </th>
<th class="sortable">
/scrabble/GetLogisticReport.do?d-49216-o=2&amp;d-49216-s=3&amp;pname=6&amp;projectid=6&amp;projectid=
HDD Return date </th>
<th class="sortable">
/scrabble/GetLogisticReport.do?d-49216-o=2&amp;d-49216-s=4&amp;pname=6&amp;projectid=6&amp;projectid=
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 style="text-align:center;">05/31/2011</td>
<td style="text-align:center;">4</td>
<td>raaj...@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 style="text-align:center;">05/31/2011</td>
<td style="text-align:center;">4</td>
<td>sureshre...@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 style="text-align:center;">05/26/2011</td>
<td style="text-align:center;">9</td>
<td>raaj...@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 style="text-align:center;">05/31/2011</td>

<td style="text-align:center;">4</td>
<td>raaj...@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 style="text-align:center;">02/31/2011</td>
<td style="text-align:center;color:red">93</td>
<td>a
href="../GetLogisticReport.do?email=raaj...@krishct.com&amp;client=HyderabadClient&amp;ldays=93&amp;projectid=6&amp;drdate=02/31/2011&amp;bcode=126">raaj...@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 style="text-align:center;">05/24/2011</td>
<td style="text-align:center;">11</td>
<td>sureshre...@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 style="text-align:center;">05/31/2011</td>
<td style="text-align:center;">4</td>
<td>sureshre...@krishct.com</td></tr></tbody></table><div
class="exportlinks">Export To: 
a
href="/scrabble/GetLogisticReport.do?6578706f7274=1&amp;pname=6&amp;projectid=6&amp;projectid=&amp;d-49216-e=2">Excel
 
/a |
a
href="/scrabble/GetLogisticReport.do?6578706f7274=1&amp;pname=6&amp;projectid=6&amp;projectid=&amp;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">
/scrabble/GetLogisticReport.do?d-49216-o=2&amp;client=HyderabadClient&amp;d-49216-s=0&amp;email=raaja.g%40krishct.com&amp;bcode=126&amp;ldays=93&amp;drdate=02%2F31%2F2011&amp;projectid=6
Barcode </th>
<th class="sortable">
a
href="/scrabble/GetLogisticReport.do?d-49216-o=2&amp;client=HyderabadClient&amp;d-49216-s=1&amp;email=raaja.g%40krishct.com&amp;bcode=126&amp;ldays=93&amp;drdate=02%2F31%2F2011&amp;projectid=6">Client
/a</th>
<th class="sortable">
/scrabble/GetLogisticReport.do?d-49216-o=2&amp;client=HyderabadClient&amp;d-49216-s=2&amp;email=raaja.g%40krishct.com&amp;bcode=126&amp;ldays=93&amp;drdate=02%2F31%2F2011&amp;projectid=6
Submission Date </th>

<th class="sortable">
/scrabble/GetLogisticReport.do?d-49216-o=2&amp;client=HyderabadClient&amp;d-49216-s=3&amp;email=raaja.g%40krishct.com&amp;bcode=126&amp;ldays=93&amp;drdate=02%2F31%2F2011&amp;projectid=6
HDD Return date </th>
<th class="sortable">
/scrabble/GetLogisticReport.do?d-49216-o=2&amp;client=HyderabadClient&amp;d-49216-s=4&amp;email=raaja.g%40krishct.com&amp;bcode=126&amp;ldays=93&amp;drdate=02%2F31%2F2011&amp;projectid=6
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 style="text-align:center;">05/31/2011</td>

<td style="text-align:center;">4</td>
<td>raaj...@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 style="text-align:center;">05/31/2011</td>
<td style="text-align:center;">4</td>
<td>sureshre...@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 style="text-align:center;">05/26/2011</td>
<td style="text-align:center;">9</td>
<td>raaj...@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 style="text-align:center;">05/31/2011</td>
<td style="text-align:center;">4</td>
<td>raaj...@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 style="text-align:center;">02/31/2011</td>

<td style="text-align:center;color:red">93</td>
<td>a
href="../GetLogisticReport.do?email=raaj...@krishct.com&amp;client=HyderabadClient&amp;ldays=93&amp;projectid=6&amp;drdate=02/31/2011&amp;bcode=126">raaj...@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 style="text-align:center;">05/24/2011</td>
<td style="text-align:center;">11</td>
<td>sureshre...@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 style="text-align:center;">05/31/2011</td>
<td style="text-align:center;">4</td>
<td>sureshre...@krishct.com</td></tr></tbody></table><div
class="exportlinks">Export To: 
a
href="/scrabble/GetLogisticReport.do?client=HyderabadClient&amp;email=raaja.g%40krishct.com&amp;6578706f7274=1&amp;bcode=126&amp;ldays=93&amp;drdate=02%2F31%2F2011&amp;projectid=6&amp;d-49216-e=2">Excel
/a|
a
href="/scrabble/GetLogisticReport.do?client=HyderabadClient&amp;email=raaja.g%40krishct.com&amp;6578706f7274=1&amp;bcode=126&amp;ldays=93&amp;drdate=02%2F31%2F2011&amp;projectid=6&amp;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 

-- 
View this message in context: 
http://old.nabble.com/Problem-with-export-in-display-tag-tp31763232p31770484.html
Sent from the DisplayTag - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to