在网页上传文件,上传没能激活,包以导入,文件夹也建立了,为什么不能实现

 <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<from action="smartupload.jsp" method="post" enctype="multipart/form-data">
    请选择文件:<input type="file"name="pic">
    <input type="submit"value="上传">
</body>
</html>



<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="org.lxh.smart.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<% SmartUpload smart = new SmartUpload() ;
   smart.initialize(pageContext) ;    // 初始化上传操作
   smart.upload() ;                   // 上传准备
   smart.save("upload") ;             //文件保存
%>
</body>
</html>

没有获取文件对象,怎么给你上传