Solved

Drag and Drop Excel Column to Database Column in JSP

Posted on 2006-07-14
4
406 Views
Last Modified: 2010-04-01
Maybe I'm trying to do the impossible.  

I have developed a desktop application that allows the user to select an Excel spreadsheet and a MySql table.  On the left side of the screen, all of the columns for the selected table are displayed.  On the right side of the screen, all of the columns for the selected spreadsheet are displayed (along with some data that can be browsed).  

The user can then drag the Excel column, from the right, to the row containing the corresponding table column on the left.  When they let go, the name of the Excel column is placed in an empty "cell" next to the table column name.  

Once all columns are selected, they then click on an "import" button and the data found in the Excel columns that have been selected for importing are imported into the table (into the table columns that they were placed next to, i.e. if Excel column Boots was dropped on MySql table column Cloths, all the data in the Boots Excel column is inserted into the MySql table in column Cloths).  

Long story short, is there any way that this can be done using Java and JSP?  I am attempting to re-write the application to make it web based, but this one function could be a show stopper.   Thanks in advance for your help.

0
Comment
Question by:ronrea
  • 2
4 Comments
 
LVL 4

Expert Comment

by:Meritor
ID: 17113728
Yes, this is possible.

You have to use javacript,css, jsp, and java to achieve this.
You may have to write lengthy code for the same.

Now the question is How to do?
For this I just lead you to the way, you must think logic for that. However if you have any question you can ask.
Please refer to this links...

http://tool-man.org/examples/
http://tool-man.org/examples/sorting.html
0
 

Author Comment

by:ronrea
ID: 17115961
Thanks for the suggestion, Meritor.  I know how to drag and drop from one text field within a page to another, but how can I load the Excel column data on one side of the screen, the table column data on the other, and so on (the rest of the process)..., all within a JSP.    Should I call an ASP page and have it do the work using the same objects used in the vb app?
0
 
LVL 4

Accepted Solution

by:
Meritor earned 175 total points
ID: 17121298
0
 
LVL 3

Assisted Solution

by:mdg12
mdg12 earned 75 total points
ID: 17123403
It does sound like this is going to become mostly an exercise in DHTML/Javascript

For reading an Excel file, I recommend the JExcel API

You can download it here:
http://www.andykhan.com/jexcelapi/

An good user community exists for help:
http://groups.yahoo.com/group/JExcelApi/
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
A customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now