数字计数器问题,急,帮帮忙!!
不知道哪里有错?帮我运行一下,然后该该!!
<html>
<head>
<title>数字记数器</title>
</head>
<body color="#ffffff">
<%@ page import="java.io.*">
<% BufferedReader file;
String countFile="http://localhost:8080/FirstProject/count.txt";
file=new BufferedReader(new FileReader(countFile));
String readfile=null;
int writefile=1;
try{
readfile=file.readLine();
}
catch(IOException e){
out.print("数据错误!");
}
if(readfile==null)readfile="没有记录";
else
writefile=Integer.parseInt(readfile)+1;
try{
PrintWriter pw;
pw=new PrintWriter(new FileOutputStream(countFile));
pw.println(writefile);
pw.close();
}
catch(IOException e){
out.print(e.getMessage());
}
%>
<div align="center">
<p><font size="5">数字记数器:</font></p>
<p>
<font size="4" color="blue">你是本站的第</font>
<font size="5" color="red"><%=readfile%></font>
<font size="4" color="blue">位访问者!</font>
</p>
</div>
</body>
</html>
<html>
<head>
<title>数字记数器</title>
</head>
<body color="#ffffff">
<%@ page import="java.io.*">
<% BufferedReader file;
String countFile="http://localhost:8080/FirstProject/count.txt";
file=new BufferedReader(new FileReader(countFile));
String readfile=null;
int writefile=1;
try{
readfile=file.readLine();
}
catch(IOException e){
out.print("数据错误!");
}
if(readfile==null)readfile="没有记录";
else
writefile=Integer.parseInt(readfile)+1;
try{
PrintWriter pw;
pw=new PrintWriter(new FileOutputStream(countFile));
pw.println(writefile);
pw.close();
}
catch(IOException e){
out.print(e.getMessage());
}
%>
<div align="center">
<p><font size="5">数字记数器:</font></p>
<p>
<font size="4" color="blue">你是本站的第</font>
<font size="5" color="red"><%=readfile%></font>
<font size="4" color="blue">位访问者!</font>
</p>
</div>
</body>
</html>
...全文
相关推荐
软件设计评审表.doc
软件设计评审表.doc
软件设计与开发评审检查表优质资料.doc
软件设计与开发评审检查表优质资料.doc
软件设计评审检查表.doc
软件设计评审检查表.doc
如何做好静态测试之软件设计的评审方法
如何做好静态测试之软件设计的评审方法.上述话是美国互联网公司Zaarly设计总监MatthewSmith的设计箴言,意思是说你的设计是一个商业解决方案,而不是一件艺术品,因此必须为设计评审做好准备。 上述话是美国互联网公司Zaarly设计总监MatthewSmith的设计箴言,意思是说你的设计是一个商业解决方案,而不是一件艺术品,因此必须为设计评审做好准备。现实生活中,有很多设计师对设计评审多有抱怨,因为设计评审中存在很多的不确定性,不同的人会有不同的审美偏好和价值偏好,一个设计方案不可能满足所有人的偏好。因此,有的时候一个思路比较完整的设计方案,在设计评审中会因部分人的个人偏好而被改的面
自评-Team1-软件设计说明—评审检查单1
评审文档检查单检查对象类型:软件开发计划 软件需求规格说明 软件设计说明 软件测试计划序号类别检查项说明检查要点1完整性设计描述是否完整,无缺漏项目概述和后续各


Web 开发
