Posted on 2007-01-06 09:55
Fisher 閱讀(647)
評論(0) 編輯 收藏 所屬分類:
Struts
struts標簽html
<!--######################################################################-->
<!--?不帶參數的page連接方式?-->
<html:link?[page="/XXX.do"|action="/XXX"]>連接內容</html:link>
<!--帶參數的一種連接方式-->
<html:link
??[page="/XXX.do?paramName1=value1&paramName2=value2"|
??page="/XXX?paramName1=value1&paramName2=value2"]>
????????連接內容
??????</html:link>
<html:link?[page="/XXX.do"|action="/XXX"]
???????????paramId="參數名"
???????????paramName="在page|request|response|session中存在的屬性名">
????????連接內容
??????</html:link>
<!--帶參數的一種連接方式-->
<html:link?[page="/XXX.do"|action="/XXX"]
???????????paramId="參數名"
???????????paramName="配置文件中的BEAN的配置名稱"
???????????paramProperty="配置對象中的成員變量">
????????連接內容
??????</html:link>
<html:link?action="/XXX"
???????????name="在page|request|response|session中存在的屬性名">
????????連接內容
??????</html:link>
<html:link?href="完整的url路徑">
????????連接內容
??????</html:link>
<html:link?page="相對于當前操作路徑的url">
????????連接內容
??????</html:link>
<html:link?forward="struts配置文件中存在的<global-forwards>元素的子元素<forwar>的name值">
????????連接內容
??????</html:link>
<!--######################################################################-->
<html:img?page="相對于當前操作路徑的url"?/>
<!--######################################################################-->
<html:img?src="完整的uri路徑"
??paramId="參數名"
??paramName="page|request|response|session中存在的屬性名"/>
<!--######################################################################-->
<html:form
??action="xxx.do"
??focus="焦點"
??method="GET|POST|DELETE|PUT|HEAD|OPTIONS"?>
<!--######################################################################-->
??<!--?單行輸入框?-->
??<html:text?property="prptName">初始值</html:text>
<!--######################################################################-->
??<!--?隱藏字段?-->
??<html:hidden?property="prptName"?/>
<!--######################################################################-->
??<!--?密碼輸入框?-->
??<html:?password?property="prptName"></html:?password>
<!--######################################################################-->
??<!--?文件獲取輸入框?-->
??<html:file?property="prptName">初始值</html:file>
<!--######################################################################-->
??<!--?按鈕?-->
??<html:button?property="prptName">初始值</html:button>
<!--######################################################################-->
??<!--?提交按鈕?-->
??<html:submit?property="prptName">初始值</html:submit>
<!--######################################################################-->
??<!--?取消按鈕?-->
??<html:cancel?property="prptName">初始值</html:cancel>
<!--######################################################################-->
??<!--?重置按鈕?-->
??<html:reset?property="prptName">初始值</html:reset>
<!--######################################################################-->
??<!--?圖片按鈕?-->
??<html:image?onclick=""?src="url"?>初始值</html:image>
<!--######################################################################-->
??<!--?復選框?-->
??<html:checkbox?property="prptName">初始值</html:checkbox>
<!--######################################################################-->
??<!--多選框的表達方式一-->
??<html:multibox?property="屬性名"?value="初始值"/>
<!--######################################################################-->
??<!--多選框的表達方式二-->
??<html:multibox?property="屬性名">初始值</html:multibox>
<!--######################################################################-->
??<!--?選擇列表?-->
??<html:select
????property="prptName"
????size="指定在網頁上顯示的可選的數目"
????multiple="true|false,此屬性用于指定列表是否允許多選">
<!--######################################################################-->
????<html:option
??????value="綁定的屬性名"
??????bundle="系統文件中綁定的屬性名"
??????key="資源文件中綁定的屬性"?>lable</html:option>
<!--######################################################################-->
????<html:options
??????collection="Vector對象,此對象中放置org.apache.struts.util.LabelValueBean對象"
??????property="網頁中的value值其值一般是value"
??????labelProperty="網頁中顯示的標簽,其值一般是lable"/>
<!--######################################################################-->
????<html:optionsCollection
??????name="page|request|response|session中存在的屬性名稱"
??????property="屬性對象中的成員變量"
??????label="成員變量中的成員變量"
??????value="成員變量中的成員變量"?/>
??</html:select>
</html:form>
<!--######################################################################-->