Search code examples
jspjstljsp-tagsatgoracle-commerce

JSTL dsp:input submit button value HTML entites not decoded


PFB the JSP code,

<fmt:message var="applyText" key="checkout.order.summary.coupon.apply" />
<dsp:input iclass="btn green rev validatePromoCode" id="atg_store_applyCoupon" bean="CouponFormHandler.claimCoupon" type="submit" value="${applyText}" />

submit button value is coming from property file, PFB,

checkout.order.summary.coupon.apply = Einl&ouml;sen

Button value text is not encoded in UI, Expected value for the button should be Einlösen

enter image description here

Thanks


Solution

  • Use dsp:tagAttribute:

    <fmt:message var="applyText" key="checkout.order.summary.coupon.apply" />
    <dsp:input iclass="btn green rev validatePromoCode" id="atg_store_applyCoupon" bean="CouponFormHandler.claimCoupon" type="submit">
        <dsp:tagAttribute name="value" value="${applyText}"/>
    </dsp:input>