I have a JSP form which is made of <input type="file"/> tag alone for allowing the user to browse and select the excel sheet.
Am going to write a servlet program for uploading the file that is selected to the server.
My questions here are,
- Which method must be used in the servlet program to receiving the file and processing? Such as doGet, doPost or doPut? 
- I have written a java program to read the excel file and compare the contents with the database. Whether I need to integrate the java program inside the servlet program itself, or should I have to just call the java program alone from Servlet? 
Please advise.
 
     
     
    