Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp: generate textfile or xml file  RSS feed

 
fang eve
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would know if there is any functions or method to generate a text file or xml file using JAVA?

My concept:
After the user upload the file,the file format is excel. I would like to take one of the column out and store the data in a xml or text file.

How should i go about it? thanks
[ July 03, 2006: Message edited by: fang eve ]
 
Travis Hein
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Jakarta POI API has good support for reading most excel files.
you could use it to write a custom reader that reads values from the column you are interested in the excel file and then writes out to a text file.
or you can use the java DOM api to build an xml document structure and write that out too.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!