File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Velocity framework creating unnecessary rows and column

 
Patit Pawan Karmakar
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i am sending email using velocity framework, the table is creating
unnecessary rows and columns . I dont understand why its comming
if anybody has any idea about it.

test.vm
---------

<html>
<head></head>
<body>
<table border='2' cellspacing="0" cellpadding="5">
<thead>
<tr>
<td>Division</td>
<td>Customer</td>
<td>Invoice Number</td>
<td>Billed Date</td>
<td>Billed Amount</td>
</tr>
</thead>

<tbody>
#foreach ($data in $billingsEmailData)
<tr>
<td> $data.division</td> <td> $data.customer</td> <td> $data.invoiceNumber</td>
<td> $data.billedDate </td> <td align='right'> $data.billedAmount </td>
</tr>
#end
</tbody>

</table>
</body>
</html>



Here is the email i got where you can see extra rows and columns are generated automatically...
table.PNG
[Thumbnail for table.PNG]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic