Link to home
Start Free TrialLog in
Avatar of ronrea
ronrea

asked on

Drag and Drop Excel Column to Database Column in JSP

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.

Avatar of Meritor
Meritor
Flag of India image

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
Avatar of ronrea
ronrea

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of Meritor
Meritor
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial