request.getParameter("name");
-->
SmartUpload su = new SmartUpload();
String name=su.getRequest().getParameter("name");
就ok
简单说 就是 要加个u.getRequest()后就可以了
-->
SmartUpload su = new SmartUpload();
String name=su.getRequest().getParameter("name");
就ok
简单说 就是 要加个u.getRequest()后就可以了
SmartUpload su = new SmartUpload();
String name=su.getRequest().getParameter("name");
还是得到的name的值是null呢??????以下是我的do_upload.jsp中上传的主要代码:
<%
SmartUpload su=new SmartUpload();
su.initialize(pageContext);
String name=su.getRequest().getParameter("name");
System.out.println("Name Is:"+name);
su.upload();
int count=su.save("/UpLoad");
//其它获得上传文件信息代码略
%>
到底哪里出错了?????