我在浏览自己写的JSP页面的时候总是出现下面的错误提示:
Undefined variable or class name: application这是什么原因啊?
application是JSP的内置对象啊,应该可以直接用的吧?
Undefined variable or class name: application这是什么原因啊?
application是JSP的内置对象啊,应该可以直接用的吧?
解决方案 »
- jsp中不能引用bean中定义的函数问题
- 谁能给介绍几个好的有Flex教程的网站
- 我想在按一个按钮后,运行另一个文件,可总失败~ 求助~~
- struts2 json 报错Could not find action or result
- 在两个jsp页面中传递韩文乱码,有解决方法吗?
- JDBC中调用存储过程一个小问题
- tomcat启动问题??急问
- struts中,可以用iterator标签动态生成很多记录到HTML页,然后用户修改生成的页,提交,能否把用iterator生成的内容,还自动提交到form里的一
- 问一下冲突检测怎么实现?
- 登陆问题,谁帮帮我!!!!!!!!!!
- 像google和雅虎和百度的搜索技术是用什么语言开发的啊
- Tomcat 5.5问题
<head>
<title>JSP APPLICATION COUNTER</title>
</head>
<body>
<%
application.setAttribute("Counter",new Integer(0));
%>
<%!
Integer i;
synchronized void countPage(){
Integer countNum=(Integer)application.getAttribute("Counter");
countNum=new Integer(countNum.intValue()+1);
application.setAttribute("Counter",countNum);
}
%>
<%
i=new Integer(0);
countPage();
i=(Integer)application.getAttribute("Counter");
%>
WELCOME TO OUR SITE!<BR>
YOU R THE <%= i.intValue() %> USER!
</body>
</html>
这个就是代码,而且还是书上的...