ValuesTag.java 文件源码

java
阅读 43 收藏 0 点赞 0 评论 0

项目:apache-tomcat-7.0.73-with-comment 作者:
@Override
public int doEndTag() throws JspException {
    JspWriter out = pageContext.getOut();

    try {
        if (!"-1".equals(objectValue)) {
            out.print(objectValue);
        } else if (!"-1".equals(stringValue)) {
            out.print(stringValue);
        } else if (longValue != -1) {
            out.print(longValue);
        } else if (doubleValue != -1) {
            out.print(doubleValue);
        } else {
            out.print("-1");
        }
    } catch (IOException ex) {
        throw new JspTagException("IOException: " + ex.toString(), ex);
    }
    return super.doEndTag();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号