N
news.rcn.com
I have to pass 2 dimensional arrays of strings to a web page where they will
be displayed in a JTable in an applet. I'm looking for a way to package the
array into a string so that I can send it as an attribute on the
HttpResponse object and then pass to the applet as a param and let the
applet unpackage it.
Is there a conventional way of doing this? Or a different approach? I have
one idea (below) but would appreciate the advice of those more experienced..
I thank you in advance for your suggestions.
Jim Cant
My current thought is to 1. URL encode each string, then 2. concatenate all
the strings of a row using a space as a delimiter, then 3. URL encode the
resulting row representations, then 4. concatenate all the encoded rows
with a delimiting space and then 5.. URL encode the resulting representation
of the entire array and finally 6. attach this as an attribute of the web
page.
On the receiving end, the applet would decode the string.
be displayed in a JTable in an applet. I'm looking for a way to package the
array into a string so that I can send it as an attribute on the
HttpResponse object and then pass to the applet as a param and let the
applet unpackage it.
Is there a conventional way of doing this? Or a different approach? I have
one idea (below) but would appreciate the advice of those more experienced..
I thank you in advance for your suggestions.
Jim Cant
My current thought is to 1. URL encode each string, then 2. concatenate all
the strings of a row using a space as a delimiter, then 3. URL encode the
resulting row representations, then 4. concatenate all the encoded rows
with a delimiting space and then 5.. URL encode the resulting representation
of the entire array and finally 6. attach this as an attribute of the web
page.
On the receiving end, the applet would decode the string.