Struts html标签总结

 

html标签                structs标签                             功能 
<html>                 <html:html>  

<base>                <html:base>                          生成当前网页的绝对路径

<a href="">         <html:link>                            
forward:指定全局转发连接
href:指定完整链接
page:指定相对于当前网页的

<html:rewrite>                                                   用于输出超链接中uri部分,即主机和端口号以后的内容

<image src="">  <html:image>                         page:指定相对与当前页面的uri 
<form>                <html:form>                           name:指定actionform的名字

<input type="text">  <html:text>                     property:相当于name属性

<input type="submit">  <html:cancel>             用于取消请求,实现需要在action内编程

<html:submit>                                                   用于提交表单

<input type="reset">     <html:reset>              用于表单清空

<input type="checkbox">  <html:checkbox>    property:相当于name属性  value:选项的值 

<html:mutilbox>                                                property:相当于name属性value:选项的值

<imput type="radio">  <html:radio>                property:相当于name属性value:选项的值 
<select>             <html:select>                        
size:在网页上显示的可选项目的个数 
property:相当于name属性  multipel是否多选 
选项为:<html:option value>显示文本</>选项<option>  <html:option>
<html:options>  property:相当于value(实际值)lableproperty:显示值  collection选项集合
<html:optionCollection>  property:选项集合  value:实际值lable:显示值 
<input type="file">  <html:file>  文件上传标签
<html:form method="post" enctype="mutipart/form-data">  property:文件绝对路径 

<html:errors>  输出错误消息,错误消息来源于ActionMessages、ActionErrors 
name:指定ActionMessages在request和session中的key 
property:指定消息属性 
bundle:指定资源文件 
<html:message>  与<html:errors>类似 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值