读书人

JSP出有关问题了.怎么解决

发布时间: 2011-11-18 22:58:52 作者: rapoo

JSP出问题了.怎么解决?
cannot resolve symbol
probably occurred due to an error in /qcfd/test.jsp line 51:
StringBuffer result=new GetResult.getResults(sDeptID);

[解决办法]
出现了不能解析的符号。

new GetResult.getResults(sDeptID);这叫什么表达式?


至少应该是这样:
new GetResult().getResults(sDeptID);

当然首先要保证这个类在jsp页面被import了,并且保证变量sDepID已经定义了。
[解决办法]
1.确保 GetResult必须在页面import
2.StringBuffer result=new GetResult.getResults(sDeptID);
把new去掉试试

读书人网 >Java Web开发

热点推荐