一个 instance 的问题?急,急,在线等!!

pk3g9a 2003-08-23 03:51:36
ProPerties si = ProPerties.getInstance();
String aa = si.getTitleTableBgcolor(); // 这句在JSP文件中会有以下错误,在servlet中没有错误,请大家帮我看一看。


Error:

Note: sun.tools.javac.Main has been deprecated.
/jspoa/left.jsp:80: Attempt to reference method getTitleTableBgcolor in
class com.Joesen.sysinfo.ProPerties as an instance variable.
out.print((si.getTitleTableBgcolor));
^
/jspoa/left.jsp:80: Attempt to reference method getTitle_color in class
com.Joesen.sysinfo.ProPerties as an instance variable.
out.print((si.getTitle_color));
^
/jspoa/left.jsp:125: Attempt to reference method getSub_title_color in
class com.Joesen.sysinfo.ProPerties as an instance variable.
out.print((si.getSub_title_color));
^
3 errors, 1 warning
...全文
26 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
pokar 2003-08-23
  • 打赏
  • 举报
回复
老大,要加上 括号啦。

多学习学习啊。
diewikwang 2003-08-23
  • 打赏
  • 举报
回复
加上括号啦
pk3g9a 2003-08-23
  • 打赏
  • 举报
回复
up
pk3g9a 2003-08-23
  • 打赏
  • 举报
回复
up

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧