diff --git a/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java b/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java index 690e056..4ab91d6 100644 --- a/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java +++ b/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java @@ -99,13 +99,12 @@ public class InputLabelTag extends InputTagSupport implements BodyTag { @Override public int doEndInputTag() throws JspException { try { - String label = getLocalizedFieldName(); - String fieldName = getAttributes().remove("name"); - + String label = getBodyContentAsString(); if (label == null) { - label = getBodyContentAsString(); + label = getLocalizedFieldName(); } + String fieldName = getAttributes().remove("name"); if (label == null) { if (fieldName != null) { label = LocalizationUtility.makePseudoFriendlyName(fieldName);