Showing data with no fixed columns in datatable with JSF...

G

gbattine

Hi guys,
i'm a great problem and i hope it is a solution.
I read all old posts but i found no solution to my problem.
I have a mysql table composed by 2 field

Id(int)
Data(Blob)

The Data is an array of byte builded in a fixed format and i have a
bean to rebuild the original txt file. This original txt file has a
variable number of rows and columns.

For displaying it in a my old java application my function reads the
array of byte into a string and split the string on ;(when i've builded
the array of byte i put ; at the end of row and a whitespace beetwen 2
different values).

How can i do it in my jsp page?
In summary
i've to develop a first jsp page that shows me

Id Data
.... ......

and i do it creating a simple wrapper class and a simple datatable,
later i add a commandbutton to allow to click on a specific Id,loading
my bean and performing logic application.(It's ok this method?)
Later i've to develop a second jsp page that shows the original txt
file rebuilded from the array of byte.

A last problem is that my original file that i have to show is made
so:(number of columns and rows are not fixed,but change file to file))


string string string.......(only strings);string double double(only
double....);string double double(only double....);...ant other equals
rows.
The first row (the only strings) represent the name of columns of my
files......help me i'm crazying!!!!!!!!!!!!!!!!!!!!!!!!!!

Only you can save me......(please post me idea or code)...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,701
Latest member
XavierQ83

Latest Threads

Top