Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

csv to html

 
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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • 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 VI Editor Redhat
  • 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 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.
 
Rancher
Posts: 43011
76
  • 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?
 
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!