PubCat ver. 1.1


        Servlet allows you to publish csv (comma separated value) or tab separated value text files. File will formated as an HTML table. The usage is:

http://your_host/servlet/PubCatServlet?name_of_the_config_file

config file:

it is a text file, each line contains some definition for data parameters. Empty lines and lines started from # or // are passing as a comments. In this file you can set some parameters for publishing. Each definition has got the following form: name=value

the list of names is:
data
format
page
body
table
title_row
row
odd_row
even_row
col1, col2 or colNNNN where NNNN - some digits

1) data. The appropriate value is a full name of data file (first line contains columns titles)
2) format. Type of the file: 1 - comma separated, 2 - tab separated. By default is 1.
3) page. This parameter sets amount of rows per page. By default it is 20
4) table. The appropriate value is a html-sets for the tag  'table'. By default it is border=1
5) body. The appropriate value is a html-sets for the tag 'body'.  For example you can set background image here: body=path_to_file
6) title_row. The appropriate value is a html-sets on the tag  'tr' for the title row. By default it is bgcolor="CCCCFF"
7) row. The same as above, but for each row in the table. By default is empty.
8) odd_row. You can use different settings for odd and even rows. By default it is bgcolor="FFFFFF"
9) even_row. By default it is bgcolor="CCCCCC"
If you set some value for the row it will overwrite the appropriate settings for odd_row and even row.
10) col1, col2 ... set html-sets for the tag  'column'  for appropriate column. By default they are empty.

The only one parameter 'data' is mandatory.

For downloading:

servlet:  PubCatServlet.class
sample of config file:  conf1
sample of data file:  test.csv
 

 © Coldjava   Comments?