Solved

Drag and Drop Excel Column to Database Column in JSP

Posted on 2006-07-14
4
402 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
Comment Utility
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
Comment Utility
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
Comment Utility
0
 
LVL 3

Assisted Solution

by:mdg12
mdg12 earned 75 total points
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
A procedure for exporting installed hotfix details of remote computers using powershell
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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

8 Experts available now in Live!

Get 1:1 Help Now