开发者

Nice html output of a HashTable

开发者 https://www.devze.com 2023-01-05 06:07 出处:网络
I have a filled HashTable<MyObject>, MyObject contains a number and a String. What I need is the easy way t开发者_开发知识库o format the output so that it can be output to a html table and b

I have a filled HashTable<MyObject>,

MyObject contains a number and a String.

What I need is the easy way t开发者_开发知识库o format the output so that it can be output to a html table and browsed via web-browser.

I look for both framework - specific solutions and simple libraries that return a string with wrapped with html tags fields.

this can look like this:

     lib.setColNum(3);
     lib.getColumns(0).bindField...

etc

Are there ready and easy to use solutions?


You might use the displaytag library:

http://displaytag.sourceforge.net/1.2/

It gives you a lot of ways to dispaly data and you can also export your table to excel, pdf, xml en some other formats as well, if you want to ...

Hope this helps, Jan

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号