当前位置: 技术问答>java相关
关于smartupload的问题
来源: 互联网 发布时间:2015-07-26
本文导语: boolean blnadd=true; commfun ntos=null; SmartUpload mySmartUpload=new SmartUpload(); mySmartUpload.initialize(pageContext); mySmartUpload.upload(); String softurl=mySmartUpload.getRequest().getParameter("softurl"); if(softurl==null){ softurl=""; blnadd=false; } ...
boolean blnadd=true;
commfun ntos=null;
SmartUpload mySmartUpload=new SmartUpload();
mySmartUpload.initialize(pageContext);
mySmartUpload.upload();
String softurl=mySmartUpload.getRequest().getParameter("softurl");
if(softurl==null){
softurl="";
blnadd=false;
}
为什么blnadd一直为false,好象取不到参数?
commfun ntos=null;
SmartUpload mySmartUpload=new SmartUpload();
mySmartUpload.initialize(pageContext);
mySmartUpload.upload();
String softurl=mySmartUpload.getRequest().getParameter("softurl");
if(softurl==null){
softurl="";
blnadd=false;
}
为什么blnadd一直为false,好象取不到参数?
|
时时:
myUpload.initialize(pageContext);
myUpload.upload();
String file0=myUpload.getFiles().getFile(0).getFileName();
//myUpload.getFiles().getFile(0).saveAs("/upload/"+file0);
myUpload.initialize(pageContext);
myUpload.upload();
String file0=myUpload.getFiles().getFile(0).getFileName();
//myUpload.getFiles().getFile(0).saveAs("/upload/"+file0);
|
参考:
http://www.csdn.net/expert/topic/876/876147.xml?temp=4.386538E-02
http://www.csdn.net/expert/topic/876/876147.xml?temp=4.386538E-02
|
你这是写在BEAN里还是写在JSP里?或是你用STRUTS之类的写在action里?