Setting float format in Struts2 for entire application -


I am using Strauss 2 to develop an application for which Display Floats with formats: "# .00", which means integer part, a point as decimal separator and the first two digits of the decimal part.

What is the method (globally using the .properties file) to set this behavior to the application?

I think what you should do is implement and place your float format in session or In context then you can use the Oggal or Straits 2 property tag to reach your JSP.

Comments