首页上一页 1 下一页尾页 3 条记录 1/1页
企业办公管理系统 new Files(path) 找不到已定义的构造方法
发表在JavaWeb图书答疑
2009-03-30
是否精华
是
否
版块置顶:
是
否
JSP数据库开发完全手册
1、企业办公管理系统
SmartUpload 类(bean)中new Files(path) 找不到已定义的构造方法
File file = new File(sourceFilePathName);
FileInputStream fileIn = new FileInputStream(file);
long fileLen = file.length();
path = path.length() != 0 ? path : "/";
File physicalPath = new File(path);
if (physicalPath.exists())
....
在File和Files类中是这样定义的:
public class File
{
File()
{
------------------------------
public class Files
{
Files()
{
2.此外,本项目中Works文件夹下的test.jsp有不存在方法
<%
GroupName group=new GroupName();
ResultSet test=group.rbBack();//The method rbBack() is undefined for the type GroupName
if(test.next()){
3、js文件夹里的DateCheck.jsp很多报错:
// JavaScript Document
<script language="JavaScript">
function CheckDates(INDate){
if (INDate=="")
//Multiple markers at this line
// - syntax error
// - syntax error
{return true;}
//
subYY=INDate.substr(0,4)
// 转换月份
if(INDate.indexOf('-',0)!=-1){ separate="-"}
//Multiple markers at this line
// missing ; before
//statement
// missing ; before
//statement
else{
if(INDate.indexOf('/',0)!=-1){separate="/"}
else {return true;}}
area=INDate.indexOf(separate,0)
subMM=INDate.substr(area+1,INDate.indexOf(separate,area+1)-(area+1))
if(subMM.length<2){subMM="0"+subMM}
// 转换日
area=INDate.lastIndexOf(separate)
subDD=INDate.substr(area+1,INDate.length-area-1)
if(eval(subDD)<10){subDD="0"+eval(subDD)}
NewDate=subYY+"-"+subMM+"-"+subDD
if(NewDate.length!=10){return true;}
if(NewDate.substr(4,1)!="-"){return true;}
if(NewDate.substr(7,1)!="-"){return true;}
if(NewDate.substr(5,2)>"12"){return true;}
if(NewDate.substr(8,2)>"31"){return true;}
//Multiple markers at this line
// syntax error
// invalid return
// invalid return
// syntax error
return false;}
</script>
//Multiple markers at this line
// unterminated regular expression
//literal
// unterminated regular expression
//literal
1、企业办公管理系统
SmartUpload 类(bean)中new Files(path) 找不到已定义的构造方法
File file = new File(sourceFilePathName);
FileInputStream fileIn = new FileInputStream(file);
long fileLen = file.length();
path = path.length() != 0 ? path : "/";
File physicalPath = new File(path);
if (physicalPath.exists())
....
在File和Files类中是这样定义的:
public class File
{
File()
{
------------------------------
public class Files
{
Files()
{
2.此外,本项目中Works文件夹下的test.jsp有不存在方法
<%
GroupName group=new GroupName();
ResultSet test=group.rbBack();//The method rbBack() is undefined for the type GroupName
if(test.next()){
3、js文件夹里的DateCheck.jsp很多报错:
// JavaScript Document
<script language="JavaScript">
function CheckDates(INDate){
if (INDate=="")
//Multiple markers at this line
// - syntax error
// - syntax error
{return true;}
//
subYY=INDate.substr(0,4)
// 转换月份
if(INDate.indexOf('-',0)!=-1){ separate="-"}
//Multiple markers at this line
// missing ; before
//statement
// missing ; before
//statement
else{
if(INDate.indexOf('/',0)!=-1){separate="/"}
else {return true;}}
area=INDate.indexOf(separate,0)
subMM=INDate.substr(area+1,INDate.indexOf(separate,area+1)-(area+1))
if(subMM.length<2){subMM="0"+subMM}
// 转换日
area=INDate.lastIndexOf(separate)
subDD=INDate.substr(area+1,INDate.length-area-1)
if(eval(subDD)<10){subDD="0"+eval(subDD)}
NewDate=subYY+"-"+subMM+"-"+subDD
if(NewDate.length!=10){return true;}
if(NewDate.substr(4,1)!="-"){return true;}
if(NewDate.substr(7,1)!="-"){return true;}
if(NewDate.substr(5,2)>"12"){return true;}
if(NewDate.substr(8,2)>"31"){return true;}
//Multiple markers at this line
// syntax error
// invalid return
// invalid return
// syntax error
return false;}
</script>
//Multiple markers at this line
// unterminated regular expression
//literal
// unterminated regular expression
//literal