Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

csv to html  RSS feed

 
Sunesh Kumar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all,

Any one pls help me
I want to convert csv files to html files but i have no idea pls help me in this topic its urgent pls help me

Thanks in advance waiting for the replies pls
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by SUNESH BACHU kumar:
Hi to all,

Any one pls help me
I want to convert csv files to html files but i have no idea pls help me in this topic its urgent pls help me

Thanks in advance waiting for the replies pls


Sunesh,
Please read the following to find out why using 'URGENT' in your posts may actually slow down resposes to it.
http://faq.javaranch.com/view?EaseUp

Also, please read:
http://faq.javaranch.com/view?UseRealWords
to see why avoiding abbreviations will help everyone involved with Javaranch.

-Thank you
 
Sunesh Kumar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I need a help inorder to convert csv files to html files using JSP


Thanks in advance sorry for my poor English

Waiting for ur replies
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing built into JSP for converting CSV to HTML.

The servlet spec provides ServletContext.getResourceAsStream for reading files packed within the webapp.

BufferedReader lets you read one line at a time.

The java.lang.String object has the java.lang.String)" target="_blank" rel="nofollow">split method which would allow you to split up a string into an array.
[ January 09, 2006: Message edited by: Ben Souther ]
 
Sunesh Kumar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The reply by you has worked out.Thanks for your help.

I display the content of the csv file in the same JSP itself.Now i want to create an HTML file with the given name can you please help for that.
As I am beginner in writing JSP programs I am struggling hard to learn at maxmimum.

Waiting for you reply Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of creating your own CSV reader, you might use one that already exists. There are some angles to CSV files that a quick-and-dirty reader probably doesn't handle. Why reinvent the wheel?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!