| 56 | } |
| 57 | |
| 58 | @Override |
| 59 | public int doEndTag() throws JspException { |
| 60 | JspWriter out = pageContext.getOut(); |
| 61 | |
| 62 | try { |
| 63 | if (!"-1".equals(objectValue)) { |
| 64 | out.print(objectValue); |
| 65 | } else if (!"-1".equals(stringValue)) { |
| 66 | out.print(stringValue); |
| 67 | } else if (longValue != -1) { |
| 68 | out.print(longValue); |
| 69 | } else if (doubleValue != -1) { |
| 70 | out.print(doubleValue); |
| 71 | } else { |
| 72 | out.print("-1"); |
| 73 | } |
| 74 | } catch (IOException ioe) { |
| 75 | throw new JspTagException("IOException: " + ioe.toString(), ioe); |
| 76 | } |
| 77 | return super.doEndTag(); |
| 78 | } |
| 79 | } |