Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 3 package madvoc; 4 5 import jodd.mutable.MutableInteger; 6 import jodd.util.StringUtil; 7 8 import java.util.Arrays ; 9 import java.util.List ; 10 import java.util.Map ; 11 12 public class FooFormBean { 13 14 public String check; 15 public boolean check1; 16 public Boolean [] check2; 17 public MutableInteger[] check3 = new MutableInteger[3]; 18 public String hidden; 19 public String text; 20 public int text1; 21 public Long text2; 22 public String textarea; 23 public String password; 24 public String radio; 25 public String select; 26 public String [] sarr; 27 public List <String > slist; 28 public Map <String , String > smap; 29 public int[] iarr; 30 31 33 public String toString() { 34 StringBuilder result = new StringBuilder (); 35 result.append("\ncheck = ").append(check); 36 result.append("\ncheck1 = ").append(check1); 37 result.append("\ncheck2 = ").append(Arrays.toString(check2)); 38 result.append("\ncheck3 = ").append(Arrays.toString(check3)); 39 result.append("\nhidden = ").append(hidden); 40 result.append("\nsarr = ").append(Arrays.toString(sarr)); 41 result.append("\npassword = ").append(password); 42 result.append("\nradio = ").append(radio); 43 result.append("\nselect = ").append(select); 44 result.append("\ntext = ").append(text); 45 result.append("\ntext1 = ").append(text1); 46 result.append("\ntext2 = ").append(text2); 47 result.append("\ntextarea = ").append(textarea); 48 result.append("\nslist = ").append(slist); 49 result.append("\nsmap = ").append(smap); 50 result.append("\niarr = ").append(Arrays.toString(iarr)); 51 return result.toString(); 52 } 53 54 56 public void setTextarea(String value) { 57 textarea = StringUtil.trimNonEmpty(value); 58 } 59 60 61 } 62
| Popular Tags
|