初学者,第一次在JSP里用javabean,按书上抄最简单的例子还是显示错误,大家指点下
显示错误信息:
type Status report
message /count/counter.jsp
description The requested resource (/count/counter.jsp) is not available.
JSP的文件:
<html>
<head>
<title> counter </title>
</head>
<body>
<jsp:useBean id= "bean " scope= "application " class= "counter "/>
<%
out.println( "the counter is: "+bean.getCount()+ " <br> ");
%>
</body>
</html>
------解决方案--------------------
你的tomcat webapps 下面有 /count/counter.jsp
这个文件吗