读书人

为什么在调用getBodyContent()时不通过

发布时间: 2012-05-04 12:36:09 作者: rapoo

为什么在调用getBodyContent()时不通过对象而直接就能调用
public int doAfterBody() throws JspException {
// TODO Auto-generated method stub
BodyContent content = getBodyContent();
String str = content.getString();
if(str != null){
JspWriter out = getPreviousOut();
try {
out.print(str.toLowerCase());
out.flush();
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
content.clearBody();
return SKIP_BODY;
}
红色标注地方是如何在底层实现的?

[解决办法]
内部方法 或者基类方法
[解决办法]

探讨
内部方法 或者基类方法

读书人网 >Java Web开发

热点推荐