View | Details | Raw Unified | Return to bug 18521
Collapse All | Expand All

(-)MessageTag.java (-6 / +14 lines)
Lines 204-209 Link Here
204
    }
204
    }
205
205
206
    /**
206
    /**
207
     *  If key is not found, use the body content as a default value.
208
     */
209
    public int doAfterBody() throws JspException
210
    {
211
        // if the value is null, use the body content
212
        if ( _value == null ) {
213
          _value = bodyContent.getString();
214
        }
215
        // cleanup
216
        bodyContent.clearBody();
217
    	return SKIP_BODY;
218
    }
219
220
    /**
207
     *  Performs the proper runtime substitution. If an id attribute was
221
     *  Performs the proper runtime substitution. If an id attribute was
208
     *  specified, then it is assumed that this tag is merely defining a
222
     *  specified, then it is assumed that this tag is merely defining a
209
     *  string variable; otherwise output is provided.
223
     *  string variable; otherwise output is provided.
Lines 211-222 Link Here
211
    public final int doEndTag() throws JspException
225
    public final int doEndTag() throws JspException
212
    {
226
    {
213
        try {
227
        try {
214
            // if the value is null, use the body content
215
            if ( _value == null ) {
216
                _value = bodyContent.getString();
217
                bodyContent.clear();
218
            }
219
220
            // perform parameter substitutions
228
            // perform parameter substitutions
221
            if ( _value != null && _arguments != null && _arguments.size() > 0) {
229
            if ( _value != null && _arguments != null && _arguments.size() > 0) {
222
                // reformat the value as specified
230
                // reformat the value as specified

Return to bug 18521