为什么application这会报错?

时间:1072次浏览2018.04.28提问

为什么application这会报错?

已解决问题

hao231知道平台可亲可爱的PLANET网友在1072次浏览2018.04.28提问提了关于IT技术手机软件编程相关的问题,他的提问你知道为什么application这会报错?IT技术手机软件编程希望大家能够帮助她。

详细问题描述及疑问:期待您的答案,希望你能感受到,我最真诚的谢意 !

第1个回答

匿名用户2020.10.27回答<%@pagelanguage="java"import="java.util.*"pageEncoding="gb2312"%><html><body><%Integercount=(Integer)application.getAttribute("count");if(count==null){count=newInteger(0);}application.setAttribute("count",++count);out.print("您是第");for(charch:count.toString().toCharArray()){out.println("<imgsrc='images/"+Character.getNumericValue(ch)+".jpg'/>");}out.print("位访客");%></body></html>试试这个吧,要把数字的每一位输出出来才对。