If you are using a good template system, it will akkow you to build
the table in the template. With WebMacro:
<table>
<tr><td><b>Item</b></td><td><b>Cost</b></td></tr>
#foreach $product in $inventory {
<tr><td>$product.name</td><td>$product.cost</td</tr>
}
</table>
where you've done something like this in the servlet:
Vector productList = ...;
templateContext.put("inventory:, productList);
You can get WebMacro for free here:
http://webmacro.org
Justin
Quoting akashmaheshwari ([EMAIL PROTECTED]):
> hi all,
> i am using Servlets for showing tables.
> i hv the html templates and in the output i
> want to stuff my data in the html templates
> any body can give me some clue how should go for
> it
> regards
> akash
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html