How to use Integer in freemarker template?
Yesterday, when I attempted to get a variable value from action, if I set the variable's which defined in ftl value up to below ten , the result always g开发者_如何学JAVAot empty.
<input type="hidden" name="orderId" id=orderId" value="9" />
public class OrderVo {
private Long id;
public Long getId() { return this.id; }
public void setId(Long id) { this.id = id; }
}
System.out.println("=============================" +vo.getOrderId());
the result was ""
Thank you at first,but it doesn't work. I got it the day before yesterday! Because for the release of the tomcat. You may come across problem in the tomcat 6.x,but not 5.x.
Please see the following section in the freemarker manual.
http://freemarker.sourceforge.net/docs/ref_builtins_number.html
Cheers.
精彩评论