I have been using Struts extensively in my applications for several years and recently noticed some strange behavior. I format numbers and dates as follows:
<bean:write name="inventoryStatusForm" property="released.numTons" formatKey="format.decimal.3" /> This is used in hundreds of places throughout my application and works fine if the value is java.lang.Double, but recently this started acting strangely for no reason. It will not format some values unless I declare them as primitive values. As soon as I change numTons on the release object it formats fine. I do not understand what is going on as I always use java.lang.Double and never use the primitive type in my objects. Why all of a sudden would this work in some places and not in others? Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com