英雄 帮帮我吧! 急死了!
An error occurred at line: 3 in the jsp file: /set.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\set_jsp.java:49: cannot resolve symbol
symbol : variable myfile
location: class org.apache.jsp.set_jsp
PrintWriter pw = new PrintWriter(new FileOutputStream(myfile));
^
帮我看看这是怎么回事啊! 脑袋疼!!!!!!!!
------解决方案--------------------帮你
------解决方案--------------------set.jsp有问题
具体是 PrintWriter pw = new PrintWriter(new FileOutputStream(myfile)); 这句话
看看你jsp中的myfile附近。
------解决方案--------------------应该是myfile没声明吧
------解决方案--------------------楼主需要去补补基础知识,JAVA代码应该放JAVA代码块里,这可是很基本的常识哦~~
------解决方案--------------------File myfile = new File( "C:/log.txt "); 位置错误
------解决方案--------------------......