夢幻之旅

          DEBUG - 天道酬勤

             :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            671 隨筆 :: 6 文章 :: 256 評論 :: 0 Trackbacks
          <2008年10月>
          2829301234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          公告

          本博客中未注原創的文章均為轉載,對轉載內容可能做了些修改和增加圖片注釋,如果侵犯了您的版權,或沒有注明原作者,請諒解

          常用鏈接

          留言簿(21)

          隨筆分類(644)

          隨筆檔案(669)

          文章檔案(6)

          最新隨筆

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          <%@ page language="java" pageEncoding="GB2312"%>
          <%@ taglib prefix="s" uri="/struts-tags"%>
          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          <html>
              
          <head>
                  
          <title>Huy Vanpull's exercise of struts 2.0 tags</title>

                  
          <meta http-equiv="pragma" content="no-cache">
                  
          <meta http-equiv="cache-control" content="no-cache">
                  
          <style type="text/css">
          .inputStyle 
          {
              width
          : 120px;
              height
          : 20px;
              color
          : red;
          }

          </style>
              
          </head>
              
          <body>
                  
          <span>表單標簽練習:<br /> </span>
                  
          <s:form id="sform" name="sform" action="userAdd" namespace="/example"
                      method
          ="post" theme="simple" onsubmit="return test()">
                      
          <s:hidden id="userId" name="user.userId" />
                      UserName:
          <s:textfield id="userName" name="user.userName"
                          value
          ="Huyvanpull" maxlength="16" cssClass="inputStyle" />
                      
          <br />
                      Password:
          <s:password id="password" name="user.password"
                          maxlength
          ="16" cssClass="inputStyle" />
                      
          <br />
                      
          &nbsp;&nbsp;Gender:<s:radio id="gender" name="user.gender"
                          list
          ="#{'male':'男','female':'女'}" value="'male'"/>
                      
          <br />    
                      
          &nbsp;&nbsp;Educat:<s:select id="education" name="user.education"
                          headerKey
          ="-1" headerValue="請選擇學歷"
                          list
          ="#{'0':'小學', '1':'初中', '2':'高中','3':'專科','4':'本科'}"
                          value
          ="4" required="true" cssClass="inputStyle" />
                      
          <br />
                      Interest:
          <s:checkbox id="interest1" name="user.interest1" value="true" fieldValue="1" /> 
                      
          <br />
                      
          &nbsp;&nbsp;Remark:<s:textarea id="remark" name="user.remark" value="rea" onfocus="this.select();" cssClass="inputStyle" />
                      
          <br />
                      
          <s:token />
                  
          </s:form>
              
          </body>
          </html>
          posted on 2008-10-12 13:17 HUIKK 閱讀(1652) 評論(0)  編輯  收藏 所屬分類: Struts
          主站蜘蛛池模板: 阳江市| 太康县| 鄂伦春自治旗| 锦屏县| 新绛县| 西乡县| 江源县| 巧家县| 武清区| 确山县| 广安市| 广平县| 连城县| 花垣县| 安塞县| 景洪市| 永昌县| 乡城县| 无棣县| 青浦区| 东海县| 嵊泗县| 准格尔旗| 抚顺市| 含山县| 景宁| 海南省| 苍南县| 调兵山市| 关岭| 祥云县| 来安县| 万源市| 伊通| 辽阳市| 彭山县| 泽普县| 克拉玛依市| 甘肃省| 丰镇市| 永修县|