title: Using Struts2 Tags to Formatting Numbers
body: <p>I want to format some numbers in our jsp pages.<br>
  first i define some resources in my porperties<br>
  <code>format.number.with2Decimal={0,number,#0.00}</code></p>
  
  <p>......<br>
  Question1:<br>
  i want to know what is the ‘#’ and '0' means?<br>
  0.00,#0.00,##.00,###0.00<br>
  who can tell me the differences between them? thanks!<br></p>
  
  <p>Question2:<br>
  if i define a BigDecimal type in my action 
  BigDecimal number1;</p>
  
  <p>Then my page should using a format to show this value,<br>
  <code>1.if number1=null then show  -NIL-</code><br>
  <code>2.if number1=0    then show  -NIL-</code><br>
  <code>3.if number1&gt;0    then show   1.00,3434.98 .....</code><br>
  please ignore number&lt;0</p>
  
  <p>Question3:<br>
  change number1 to a String,<br>
  <code>1.if number1=null or empty or blank     then show  -NIL-</code><br>
  <code>2.if number1=Hello                      then show   Hello ....</code><br></p>
  
  <p>could you give me help?</p>