Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to read Data From Excel File Using servlets,jsp

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Requirements:
1) Read data from Excel File : Suppose the File contains: Empnumber, Empname, and Salary columuns.. There will be thousands of rows.

-> we have to read data from Excel file and validate the data( i.e, the Empnumber must be varchar, Empname must be character, and Salary must be numeric).
-> if the data is valid then store the data in the database table1.

-> if the data is not valid then find out the location of the invalid data with index number and the column which is invalid and store the invalid data with index number in a database table2.

This can be done using servlets,jsp,javascript


Expecting a reply soon from all of you guys.. I will be thankful to all of you if you give me a solution..
 
Marshal
Posts: 67415
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing in servlets or JSP that will help you read the Excel file. That is the domain of other tools.

You would use servlets and JSP to upload a file from a client system, but the actual reading of the file is independent of whether it's in a web app, a Swing app or even a command line application.

As such, I've moved this to the Other Open Source forum, where tools such as POI are discussed.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The two most popular packages to read Excel files are POI and jExcelApi. You can find links to them on the AccessingFileFormats wiki page.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi sir i am using poi for read data from excel sheet but i wand retrive specific data means i want real only g3 cell data .
 
durgaprasad polaki
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to generates the charts in web application using jsp or servlets.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic