html標(biāo)簽 structs標(biāo)簽 功能
<html> <html:html>
<base> <html:base> 生成當(dāng)前網(wǎng)頁的url絕對路徑
<a href=""> <html:link> forward:指定全局轉(zhuǎn)發(fā)連接
href:指定完整url鏈接
page:指定相對于當(dāng)前網(wǎng)頁的url
<html:rewrite> 用于輸出超鏈接中uri部分,即主機(jī)和端口號以后的內(nèi)容
<image src=""> <html:image> page:指定相對與當(dāng)前頁面的uri
<form> <html:form> name:指定actionform的名字
<input type="text"> <html:text> property:相當(dāng)于name屬性
<imput type="submit"> <html:cancel> 用于取消請求,實(shí)現(xiàn)需要在action內(nèi)編程
<html:submit> 用于提交表單
<input type="reset"> <html:reset> 用于表單清空
<input type="checkbox"> <html:checkbox> property:相當(dāng)于name屬性
value:選項(xiàng)的值
<html:mutilbox> property:相當(dāng)于name屬性value:選項(xiàng)的值
<imput type="radio"> <html:radio> property:相當(dāng)于name屬性value:選項(xiàng)的值
<select> <html:select> size:在網(wǎng)頁上顯示的可選項(xiàng)目的個數(shù)
property:相當(dāng)于name屬性
multipel是否多選
選項(xiàng)為:<html:option value>顯示文本</>選項(xiàng)
<option> <html:option>
<html:options> property:相當(dāng)于value(實(shí)際值)
lableproperty:顯示值
collection選項(xiàng)集合
<html:optionCollection> property:選項(xiàng)集合
value:實(shí)際值
lable:顯示值
<input type="file"> <html:file> 文件上傳標(biāo)簽需把
<html:from method="post" enctype="mutipart/form-data">
property:文件絕對路徑
<html:errors> 輸出錯誤消息,錯誤消息來源于ActionMessages、ActionErrors
name:指定ActionMessages在request和session中的key
property:指定消息屬性
bundle:指定資源文件
<html:message> 與<html:errors>類似