aspose file tools*
The moose likes Other Application Frameworks and the fly likes Velocity framework creating unnecessary rows and column Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Velocity framework creating unnecessary rows and column " Watch "Velocity framework creating unnecessary rows and column " New topic
Author

Velocity framework creating unnecessary rows and column

Patit Pawan Karmakar
Greenhorn

Joined: Jul 25, 2014
Posts: 1
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]

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Velocity framework creating unnecessary rows and column