tambien cree un controlador
Código java:
Ver originalimport java.io.File;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
@SuppressWarnings("deprecation")
public class OfficeController extends SimpleFormController{
private GeneralDaoImpl service=new GeneralDaoImpl();
protected Object formBackingObject
( HttpServletRequest request
) return service;
}
protected ModelAndView onSubmit(HttpServletRequest request,
ModelAndView modelAndView;
fileName
= (File) request.
getSession().
getAttribute("archivo");
modelAndView = new ModelAndView("office");
return modelAndView;
}
}