Announcement Announcement Module
Collapse
No announcement yet.
<form:input how to prevent field from displaying default values Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <form:input how to prevent field from displaying default values

    Hello Everyone,

    I have a couple of input tags that are bound to both int's and doubles, when the jsp page loads if the values aren't populated they're displaying 0 and 0.0, how can I display nothing if these fields aren't populated.

    <form:input name="prevMonthActual" path="prevMonthActual" value="${returnsListVar.prevMonthActual}"/> preMonthActual is a double and showing 0.0 in the input field


    Thank you for your help.
    Keith

  • #2
    Hi keith,

    One way of fixing it is define the variables as String objects and do the conversion after the values are validated.

    Comment

    Working...
    X