/* * UploadGenotypingAction.java * * Created on December 15, 2005, 9:41 AM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */ package org.tgdb.webapp.action.model; import org.tgdb.exceptions.ApplicationException; import org.tgdb.webapp.action.TgDbAction; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; /** * * @author lami */ public class UploadGenotypingAction extends TgDbAction { /** Creates a new instance of UploadGenotypingAction */ public UploadGenotypingAction() { } public String getName() { return "UploadGenotypingAction"; } public boolean performAction(HttpServletRequest request, ServletContext context) throws ApplicationException { try { // HttpSession session = request.getSession(); // WebFileUpload webFile = new WebFileUpload(request, 100000000); // FileDataObject fileData = webFile.getFile("file"); // String upload = webFile.getFormParameter("upload"); // // if(exists(upload)) { // TgDbCaller caller = (TgDbCaller)session.getAttribute("caller"); // // FormDataManager formDataManager = getFormDataManager( // TgDbFormDataManagerFactory.EXPMODEL, // TgDbFormDataManagerFactory.WEB_FORM, // request); // // String eid = formDataManager.getValue("eid"); // modelManager.addGenotypingFile(Integer.parseInt(eid), fileData, caller); // } return true; } catch (Exception e) { e.printStackTrace(); } return false; } }