@Override
public int doEndTag() throws JspTagException {
try {
String tagId = "profile" + Long.toString(System.currentTimeMillis());
StringBuilder fullHTML = new StringBuilder();
fullHTML.append("<div class=\"profile\">");
String profileContent = getSourceViewJSON(profile); //since JSON is now the primary format, we try this first
if (profileContent == null) {
profileContent = getListViewHTML(profile);
}
if (profileContent == null) {
profileContent = getSourceViewHTML(profile);
}
fullHTML.append(" <div id=\"profileHTML-").append(tagId).append("\">");
fullHTML.append(profileContent);
fullHTML.append(" </div>");
fullHTML.append("</div>");
pageContext.getOut().write(fullHTML.toString());
} catch (java.io.IOException e) {
throw new JspTagException("IO Error: " + e.getMessage());
}
return EVAL_PAGE;
}
ProfileRenderer.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:easyrec_major
作者:
评论列表
文章目录