Hi,
While you upload than you have to read that from request form object and after that you can save CSV any where on server. After that following code will help you for reading CSV in JSP
String filePathOnServer= application.getRealPath("main.csv"); //here main.csv in root folder.
FileInputStream fis = new FileInputStream(filePathOnServer);
DataInputStream dis = new DataInputStream(fis);
//Following code may required some tweaking because I have used readLine() in different manner.
while(dis.readLine())
{
//Split the line and assign to array than validate and save to db
//Here you can use class object for each line
}