I've added my module under the name 'table-york'. I've included a very 
minimal build setup and the 3 jars that it currently needs. Running 'ant' 
should compile everything.

Unfortunately, I don't have any great examples of it's usage yet checked 
into CVS, but you can see a very simple demo at:

http://www.johnyork.com/table/test.jsp

In the next couple days, I'll try and put together a few more examples and 
some minimal documentation, but I thought it would be best to get this 
imported so that anyone who is interested can check it out and make 
comments.

There are only 9 source files here, so it should be fairly obvious how 
they work, but here's a very quick overview:

The TableTag.java has doStartTag() and performs the iterate that 
populates the TableModel object. When doEndTag() is called, it performs 
any needed operation on the data model and then figures out how to display 
the data. Currently there are 2 ways to display data, HTML or CSV. 
HtmlTableView.java does all the HTML formatting and CSVTableView does CSV 
formatting. I borrowed parts of the struts RequestUtils file, but modified 
them so I only needed to include BeanUtils.

Most of this is very similar to Ed's tag, but I did deviate in a few 
places as well as left out some things that I didn't need for my 
implementation. I'll try and do a UML diagram of this thing and maybe 
that'll help sort it out even better, but I believe the overall structure 
is much improved and extendable.

-- 
John York
Software Engineer
CareerSite Corporation



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to