当前位置: 首页 > news >正文

e语言可以做网站吗长沙网站优化方法

e语言可以做网站吗,长沙网站优化方法,线上营销策划方案,软文广告经典案例100字本文实例讲述了JSP实现的简单Web投票程序。分享给大家供大家参考。具体如下#xff1a;这里使用文本文件作为数据存储的投票系统。1. vote.java#xff1a;package vote;import java.io.*;import java.util.*;public class vote {public String filePath ;publi…本文实例讲述了JSP实现的简单Web投票程序。分享给大家供大家参考。具体如下这里使用文本文件作为数据存储的投票系统。1. vote.javapackage vote;import java.io.*;import java.util.*;public class vote {public String filePath ;public int n;private File voteFile;private BufferedReader fileRead;private PrintWriter fileWrite;public String systemMessage ;private String voteStr[] new String[10];public int voteNum[] new int[10];public void createFile() throws FileNotFoundException {voteFile new File(filePath);if (!voteFile.exists()) {fileWrite new PrintWriter(new FileOutputStream(filePath));for (int i 0; i n; i)fileWrite.println(0);fileWrite.close();}}public void writeFile() throws FileNotFoundException {fileWrite new PrintWriter(new FileOutputStream(filePath));for (int i 0; i n; i) {fileWrite.println(voteNum[i]);}fileWrite.close();}public void readFile() throws FileNotFoundException {fileRead new BufferedReader(new FileReader(filePath));for (int i 0; i n; i) {try {voteStr[i] fileRead.readLine();} catch (IOException f) {voteStr[i] 0;}voteNum[i] Integer.parseInt(voteStr[i]);}try {fileRead.close();} catch (IOException d) {systemMessage d.toString();}}}2. vote.jspString vote1request.getParameter(lang);vote.n4;vote.filePathvote.txt;vote.createFile();vote.readFile();if(vote1.compareTo(0)0)vote.voteNum[0];if(vote1.compareTo(1)0)vote.voteNum[1];if(vote1.compareTo(2)0)vote.voteNum[2];if(vote1.compareTo(3)0)vote.voteNum[3];vote.writeFile();%alert(感谢你投了宝贵的一票);self.locationindex.jsp;3. see.jspString vote1request.getParameter(lang);vote.n4;vote.filePathvote.txt;vote.createFile();vote.readFile();int total0;float voteFlo[]new float[5];for(int i0;i4;i) totalvote.voteNum[i];for(int i0;i4;i) voteFlo[i]150*((float)vote.voteNum[i]/(float)total);%查看调查调查结果JSP height8 ASP height8 PHP height8 其他 height8 关闭窗口4. index.jsp投票function cw(){window.open(see.jsp,mywindow,toolbarno,left150,top200,width270,height350,menubarno,systemMenuno);}你所使用的开发语言JSPASPPHP其他 希望本文所述对大家的JSP程序设计有所帮助。
http://www.zqtcl.cn/news/775568/

相关文章:

  • 赤峰网站建设培训建筑资格证书查询官网
  • 共和县公司网站建设seo网络推广招聘
  • 网站怎样做外链百度网站地图提交
  • 瑞安联科网站建设中国做网站公司排名
  • jsp网站开发详解 赵增敏jsp网站首页怎么做
  • 有哪些可以做图的网站啊莱芜金点子广告电子版2024
  • 免费营销型网站模版南宁比较有好的网站制作公司
  • 做外贸上什么网站什么什么设计英文网站
  • 嘿客免费网站建设网站对联图片
  • 一件代发48个货源网站韶关最新消息
  • 网站都需要备案吗安徽建设通网站
  • 外包公司 网站建设 深圳电子商务公司设计网站建设
  • 怎么添加网站背景音乐定制建站
  • 西安网站建设和推广公司php企业网站开发实训报告
  • 市网站制作番禺绿叶居
  • 网站漂浮物怎么做电子商务网站开发实训体会
  • 电商网站建设定制济南网站建设及推广
  • 网站标签化wordpress 输出评论内容 函数
  • 明星个人网站设计汕头网络推广公司
  • 深圳有哪些做网站公司好武夷山建设局网站
  • 怎么设立网站赚广告费一个网站可以做多少关键字
  • 网站刚建好怎么做能让百度收录成都定制网站建
  • thinkphp网站开发技术做电脑租赁网站
  • 网站设计评语中午版wordpress
  • 邢台企业手机网站建设汕头网站制作后缀
  • 微网站后台内容设置做网站语言排名2018
  • 嘉兴网站制作网站建设外贸营销推广平台有哪些
  • 网站开发集广州高端网站定制开发价格
  • 网站开发培训成都网站建设 报价单 doc
  • 苏州哪里有做淘宝网站的WordPress模板博客主题