hello,
I am doing download to a file and I want that this file that can be opened
in way text and excel..pero I have problems. in the format.
something like this,
format in txt....
amount monto1 monto2
100 200 300
200 500 600
and in excel also it must visualize, by columns and separated by rows...
any idea.......
my file is of extension *.csv
while(contador<(columas+1)){
arrayBytes = new byte[Integer.parseInt(registro[1][contador-1])];
campo=registro[0][contador-1]+ ((contador==columas)? "\n":"\t");
campo.getBytes(0,campo.length(),arrayBytes,0);
file.write(arrayBytes);
contador++;
}
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets