二十三、常用的标签:见源码

二十三、常用的标签:见源码

<!--Struts2标签:表单 -->

    <s:form id="userAction_save_do" name="Form1" action="addUser" namespace="/user"

        enctype="multipart/form-data">

            

            

                    <!--struts 标签: <s:textfield/> -->

                    登录名:<s:textfield name="logonName" id="userAction_save_do_logonName" class="bg"></s:textfield>

                            

                    <!--struts 标签:<s:password/> -->

                    密码:<s:password name="logonPwd" id="logonPwd"></s:password>

                

                    <!--struts 标签:<s:textfield/> -->

                    用户姓名:<s:textfield name="userName" id="userAction_save_do_userName" class="bg"></s:textfield>

                

                    <!--struts 标签:<s:radio /> ContextMap中存储信息 -->

                     性别 <s:radio name="sex" id="sex" list="#{'male':'','female':''}" value="{'male'}"></s:radio>

                

                    <!--struts 标签: <s:select/> 在值栈的栈顶存储信息 -->

                    学历:<s:select name="education" id="education" list="{'博士','硕士','本科','专科','高中','胎教'}" headerKey=""

                        headerValue="--请选择--"></s:select>

            

                    <!--struts 标签: <s:textfield/>-->

                    出生日期:<s:textfield name="birthday" size="20" value="" readonly="readonly" id="birthday"></s:textfield>

                

                    <!--struts 标签:<s:textfield/> -->

                    电话:<s:textfield name="telephone" value="" id="telephone"></s:textfield>

                

                    <!-- Struts2 的标签:checkbox集合 在值栈的栈顶存储信息-->

                    爱好:<s:checkboxlist name="interests" list="{'看电影','旅游','健身','购物','睡觉'}"></s:checkboxlist>

                

                    <!--struts 标签:<s:file/> -->

                    简历资料:<s:file name="upload" size="30" value="" id="userAction_save_do_upload"></s:file>

                

                    <!--struts 标签:<s:textarea/> -->

                    备注:<s:textarea name="remark" cols="30" rows="3" id="userAction_save_do_remark" style="WIDTH: 96%"></s:textarea>

                </s:form>

 

转载于:https://www.cnblogs.com/Prozhu/p/5886554.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值