一个初学者遇到的问题,希望大家都来斑竹一下
<html> <body> <% application.setAttribute(x,"100"); %> </body> </html>简单的一句
错误提示
org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 2 in the jsp file: /test.jsp Generated servlet error: [javac] Compiling 1 source file C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\test_jsp.java:44: cannot resolve symbol symbol : variable x location: class org.apache.jsp.test_jsp application.setAttribute(x,"100"); ^ 1 error