【发布时间】:2012-09-17 17:29:30
【问题描述】:
在显示我的 jsp 页面时遇到异常,该页面试图调用在类型 Person 中定义的函数 getCurrentlocation()。
该函数由jsp文件中的${person.currentlocation}调用。
type Exception report
message javax.el.ELException: Error reading 'currentlocation' on type **.person.Person
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: javax.el.ELException: Error reading 'currentlocation' on type **.person.Person
我对 jsp 技术还很陌生。也许有人可以帮助我!
谢谢, 本杰明
【问题讨论】:
-
可能是错字,可能是
getCurrentLocation()?还要检查 getter 是否是公开的。 -
我还检查了拼写错误...这个函数不是getter,而是它的public。它从对象的某些字段中计算返回值。
-
抱歉各位,发现问题了...我超出了数组的范围...谢谢!