Chen Yangjian's Blog

Carpe diem - Seize the day

[Struts] 1.1 里头的

| Comments

使用 <logic:iterate /> 加上 <bean:write /> 来处理 Java 里头的 List 是 Struts 1 时代最常见的事情了。不知道是我老了还是 Struts 1.1 老了,今天突然发现不能写整型,Google 得到结果如下:

<bean:write name=”book” property=”id” format=”#” />

输出 int 或者 Date 等非 String 类型的变量的时候加个 format 就行了。

Comments