to: diewikwang(coconut)我用String type = mySmartUpload.getRequest("Type");后报错如下:
Note: sun.tools.javac.Main has been deprecated.
/programe/uploadFile/upload.jsp:21: Wrong number of arguments in method.
String type = mySmartUpload.getRequest("Type");
^
Note: E:\resin\doc\WEB-INF\work\_programe\_uploadfile\_upload__jsp.java
uses or overrides a deprecated API. Recompile with "-deprecation" for
details.
是什么原因啊,该如何解决啊???
我已经import="com.jspsmart.upload.*“
帮帮忙!!!先谢了!!!
File d = new File(path);
//建立代表目前目录位置的File件, 并由d件变数引用
File list[] = d.listFiles();
//取得代表目录中所有文件的File件阵列
int j=list.length-3;
int i =0;
while(j>0)
{
%>
<option value="<%=list[i]%>"><%=list[i]%></option>
<%
i++;
j--;
}
%>
</select>
<select name="Year" size="1">
<%
Date today = new Date();
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
String sToday = format.format(today);
int lToday = Integer.parseInt(sToday);
int w = lToday%10000;
int ww=(lToday-w)/10000;
Date bb = Calendar.getInstance().getTime();
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
String sToday = format.format(today);
System.out.println(sToday);
public class DateTest {
public static void main(String[] args){
Date today = new Date();
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
String sToday = format.format(today);
System.out.println(sToday);
}
}
在问大家一个问题!!!
500 Servlet Exception
java.lang.NullPointerException
at java.io.File.<init>(File.java:180)
at _programe._uploadfile._upload__jsp._jspService (/programe/uploadFile/upload.jsp:47)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
这样的异常怎么解决???由什么引起的,应该怎么着手解决???
我用的是resin,请各位帮忙了!!!!