473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to read and map xls columns

Hi,

I need to implement something like allowing the user to browse an xls r which is having some data and then allow the user to map the columns of that xls such that the data from a particular column is read under a predefined category, I mean something what appears when we try to import the xls data in the TOAD. Please refer the snapshot attached. In simple terms say i want to map coumns of the uploaded xls say with the fields on the html form. I am using struts 1.1. Please help me if anyone is having any input on the same.

TIA
Attached Images
File Type: jpg XLS Mapping.jpg (10.5 KB, 168 views)
Dec 18 '08 #1
3 1796
samido
52
there is a JDBC drivers that can connect to spreadsheed like database's, google them and they will help you a lot ...? you will simply have to create DAO that can acts as a layer between your struts classes and spread sheet doc
Dec 18 '08 #2
pronerd
392 Expert 256MB
The POI project will let you access MS Office files with Java.
Apache POI - Java API To Access Microsoft Format Files
Dec 18 '08 #3
Hi,

Thanks for your quick reply.
For the first reply, if i would use the JDBC drivers for reading xls i wont be able to let the user supply his own xls on the fly (am i right here?).

For the second reply, i tried going to the mentioned POI website but i could not be able to download the needed Jars. Can you be pls more specific from where i can get the jars. Moreover i am using "WSAD" for the development. Would i need to have some other configurations also in order to use the POI JARS.

Thanks
Dec 22 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: nospam | last post by:
If I had a text file with the following two columns: key1 value1 key2 value2 key3 value3 How would I read in this file and create an associative array?
1
by: Marco Martin | last post by:
Hi everyone, I've got a dataset with a records table that is built up from scratch according to user input. I'm saving this dataset as xml by using...
5
by: Mike L | last post by:
I need the code to read from a stored procedure not a table. I put the name of the stored procedure where the table name "customer" is but error occurred. int numCols =...
0
by: Bob | last post by:
I have a data grid with a template column. Sometimes I need this column to be read-only, even in edit mode. Does anyone know how to do this. I get the other columns by running through the...
15
by: ruca | last post by:
Hi, Can I read a .TXT File to a DataSet? How can I do that? I want to read his lines to a DropDownList. This lines are the names of employees that I export from an application that I have. I...
3
by: Programmer | last post by:
Hi all I wan't to know if i'm able to read mail from a mail server. My mail server is a pop3 server (UNIX) and i want to be able to get the mails from an aspx or an asmx. with out using external...
2
by: Ing. Rajesh Kumar | last post by:
Hi everybody I have a problem reading the content of a cell. When i use AutogenerateColumns = True or when i use <asp:BoundColumn DataField="COLUMN1" HeaderText="COLUMN1"/> then i can simply read...
2
by: Kburton | last post by:
What criteria is used by the system to determine if a view is read only? I created a view that involves two tables. It does display columns from each of the tables. All columns in both tables can...
4
by: =?Utf-8?B?TWlrZSBE?= | last post by:
I read the CSV file into a DataTable. This is so I can fix invalid dates and other data I don't want in the database. Then I use SqlBulkCopy to insert the data into the SQL database. All the...
1
by: greyseal96 | last post by:
Hi, I am a pretty new programmer, so I apologize in andvance if this is a dumb question... In a book that I'm reading to learn C#, it says that when using a foreach() loop, a read-only copy of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.