HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 12 in the jsp file: /05_01.jspGenerated servlet error:
[javac] Compiling 1 source fileD:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\_05_01_jsp.java:71: cannot resolve symbol
symbol : method setValue (java.lang.String)
location: class test.MyBean
mybean.setValue(str1);
^An error occurred at line: 12 in the jsp file: /05_01.jspGenerated servlet error:
D:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\_05_01_jsp.java:72: cannot resolve symbol
symbol : method getValue ()
location: class test.MyBean
str2=mybean.getValue()+str2;
^
2 errors
[javac] Compiling 1 source fileD:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\_05_01_jsp.java:71: cannot resolve symbol
symbol : method setValue (java.lang.String)
location: class test.MyBean
mybean.setValue(str1);
^An error occurred at line: 12 in the jsp file: /05_01.jspGenerated servlet error:
D:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\_05_01_jsp.java:72: cannot resolve symbol
symbol : method getValue ()
location: class test.MyBean
str2=mybean.getValue()+str2;
^
2 errors
一个是setValue,一个是setvalue。太太太粗心了吧?
public void setvalue(String avalue){
str=avalue;
}