使用jspsmartupload组件得到上传参数的值怎么总是空?
test1.jsp
<body>
<form name= "form1 " method= "post " action= "test2.jsp " enctype= "multipart/form-data ">
<input type= "text " name= "phone " value= "123456 "/>
<input type= "submit " value= "提交 "/>
</form>
</body>
============================================
test2.jsp
<%@ page language= "java " import= "java.util.*,com.jspsmart.upload.* " pageEncoding= "UTF-8 "%>
<body>
<%
SmartUpload su=new SmartUpload();
su.initialize(pageContext);
%>
<%=su.getRequest().getParameter( "phone ") %>
</body>
test2.jsp输出的结果却总是空,请大家看看这是怎么回事?
------解决方案--------------------enctype= "multipart/form-data " 去掉这个试试