主题:求助:一个简单的计数器问题
刚开始学jsp,做一个简单的计数器就出现了问题,看了很久,觉得代码没有问题,tomcat等配置也没有问题,自己写了一个index来测试,能够运行。可是这个计数器却不行。出现下面的错误:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 12 in the jsp file: /test.jsp
Generated servlet error:
counter cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /test.jsp
Generated servlet error:
counter cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /test.jsp
Generated servlet error:
counter cannot be resolved to a type
An error occurred at line: 14 in the jsp file: /test.jsp
Generated servlet error:
counter cannot be resolved to a type
An error occurred at line: 14 in the jsp file: /test.jsp
Generated servlet error:
Duplicate local variable testcounter
An error occurred at line: 14 in the jsp file: /test.jsp
Generated servlet error:
counter cannot be resolved to a type
An error occurred at line: 14 in the jsp file: /test.jsp
Generated servlet error:
cont cannot be resolved
An error occurred at line: 15 in the jsp file: /test.jsp
Generated servlet error:
cont cannot be resolved
看了很久也没看出是什么问题,它说counter cannot be resolved to a type
,可我已经将这个类放在classes目录下了,还是不行。请指教。。。。
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 12 in the jsp file: /test.jsp
Generated servlet error:
counter cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /test.jsp
Generated servlet error:
counter cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /test.jsp
Generated servlet error:
counter cannot be resolved to a type
An error occurred at line: 14 in the jsp file: /test.jsp
Generated servlet error:
counter cannot be resolved to a type
An error occurred at line: 14 in the jsp file: /test.jsp
Generated servlet error:
Duplicate local variable testcounter
An error occurred at line: 14 in the jsp file: /test.jsp
Generated servlet error:
counter cannot be resolved to a type
An error occurred at line: 14 in the jsp file: /test.jsp
Generated servlet error:
cont cannot be resolved
An error occurred at line: 15 in the jsp file: /test.jsp
Generated servlet error:
cont cannot be resolved
看了很久也没看出是什么问题,它说counter cannot be resolved to a type
,可我已经将这个类放在classes目录下了,还是不行。请指教。。。。