Demo.html
1 <!DOCTYPE HTML>2 <HTML>3 4 <Head>5 <MetaCharSet= "UTF-8">6 <title></title>7 </Head>8 9 <Body>Ten <formAction= "/demo/show12.do"Method= "post"> one <Div>Name:</Div> a <Div> - <inputname= "name"value= "zhang san" /> - </Div> the <Divclass= "clear"></Div> - <Div>Age:</Div> - <Div> - <inputname= "age"value= " the" /> + </Div> - <Divclass= "clear"></Div> + <Div>Income:</Div> a <Div> at <inputname= "income"value= "100000" /> - </Div> - <Divclass= "clear"></Div> - <Div>Get married:</Div> - <Div> - <inputtype= "radio"name= "ismarried"value= "true"checked= "checked" />is a in <inputtype= "radio"name= "ismarried"value= "false" />No - </Div> to <Divclass= "clear"></Div> + <Div>Interest:</Div> - <Div> the <inputtype= "checkbox"name= "interests"value= "listen to the song"checked= "checked" />Listen to the song * <inputtype= "checkbox"name= "interests"value= "calligraphy"checked= "checked" />Calligraphy $ <inputtype= "checkbox"name= "interests"value= "watching movies"checked= "checked" />Watch a moviePanax Notoginseng </Div> - <Divclass= "clear"></Div> the <Div> + <inputtype= "submit"value= "submit form" /> a </Div> the </form> + </Body> - $ </HTML>
Effect:
Basic data type bindings for data Binding-java