大家好,我在使用weblogic 加载自定义标签时由于 bodyContent ==null 所以里面内容加载不了,但是在tomcat中是正常的,希望给予回复,谢谢!!!
public int doEndTag() throws JspException {
if (bodyContent != null) {
String contentString = bodyContent.getString(); content.write(contentString, 0, contentString.length()); // 语言转换
try {
pageContext.getOut().write(content.getPrintString()); // 输出内容
} catch (IOException e) {
e.printStackTrace();
}
}
return EVAL_PAGE;
}