Format attribute of <bean:write> tag in Struts

Posted by Sushant Taneja on Stack Overflow See other posts from Stack Overflow or by Sushant Taneja
Published on 2010-05-03T05:06:52Z Indexed on 2010/05/03 5:18 UTC
Read the original article Hit count: 227

Filed under:
|
|
|

Hello All,

I am developing a web application using Struts 1.2.7

I want to print a list of integers using the tag. I searched and found that the format attribute is used to print the desired result but was unsuccessful.

What should I pass as the value in format to print 3 digit integers/floating point numbers. The code sample is as follows:

<logic:iterate name="intList" id="integer" >
   <bean:write name="integer" />
<logic:iterate />

Here intList is a List of int(s) passed as a request attribute to the jsp page under consideration.

© Stack Overflow or respective owner

Related posts about java

Related posts about struts