<!--######################################################################-->
<!--?不帶參數(shù)的page連接方式?-->
<html:link?[page="/XXX.do"|action="/XXX"]>連接內(nèi)容</html:link>
<!--帶參數(shù)的一種連接方式-->
<html:link
??[page="/XXX.do?paramName1=value1&paramName2=value2"|
??page="/XXX?paramName1=value1&paramName2=value2"]>
????????連接內(nèi)容
??????</html:link>
<html:link?[page="/XXX.do"|action="/XXX"]
???????????paramId="參數(shù)名"
???????????paramName="在page|request|response|session中存在的屬性名">
????????連接內(nèi)容
??????</html:link>
<!--帶參數(shù)的一種連接方式-->
<html:link?[page="/XXX.do"|action="/XXX"]
???????????paramId="參數(shù)名"
???????????paramName="配置文件中的BEAN的配置名稱"
???????????paramProperty="配置對(duì)象中的成員變量">
????????連接內(nèi)容
??????</html:link>
<html:link?action="/XXX"
???????????name="在page|request|response|session中存在的屬性名">
????????連接內(nèi)容
??????</html:link>
<html:link?href="完整的url路徑">
????????連接內(nèi)容
??????</html:link>
<html:link?page="相對(duì)于當(dāng)前操作路徑的url">
????????連接內(nèi)容
??????</html:link>
<html:link?forward="struts配置文件中存在的<global-forwards>元素的子元素<forwar>的name值">
????????連接內(nèi)容
??????</html:link>
<!--######################################################################-->
<html:img?page="相對(duì)于當(dāng)前操作路徑的url"?/>
<!--######################################################################-->
<html:img?src="完整的uri路徑"
??paramId="參數(shù)名"
??paramName="page|request|response|session中存在的屬性名"/>
<!--######################################################################-->
<html:form
??action="xxx.do"
??focus="焦點(diǎn)"
??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>
<!--######################################################################-->
??<!--?復(fù)選框?-->
??<html:checkbox?property="prptName">初始值</html:checkbox>
<!--######################################################################-->
??<!--多選框的表達(dá)方式一-->
??<html:multibox?property="屬性名"?value="初始值"/>
<!--######################################################################-->
??<!--多選框的表達(dá)方式二-->
??<html:multibox?property="屬性名">初始值</html:multibox>
<!--######################################################################-->
??<!--?選擇列表?-->
??<html:select
????property="prptName"
????size="指定在網(wǎng)頁上顯示的可選的數(shù)目"
????multiple="true|false,此屬性用于指定列表是否允許多選">
<!--######################################################################-->
????<html:option
??????value="綁定的屬性名"
??????bundle="系統(tǒng)文件中綁定的屬性名"
??????key="資源文件中綁定的屬性"?>lable</html:option>
<!--######################################################################-->
????<html:options
??????collection="Vector對(duì)象,此對(duì)象中放置org.apache.struts.util.LabelValueBean對(duì)象"
??????property="網(wǎng)頁中的value值其值一般是value"
??????labelProperty="網(wǎng)頁中顯示的標(biāo)簽,其值一般是lable"/>
<!--######################################################################-->
????<html:optionsCollection
??????name="page|request|response|session中存在的屬性名稱"
??????property="屬性對(duì)象中的成員變量"
??????label="成員變量中的成員變量"
??????value="成員變量中的成員變量"?/>
??</html:select>
</html:form>
struts標(biāo)簽logic
<!--#################################################################-->
<!--?<logic:equal>和<logic:notEqual>判斷變量的值與指定常量是否相等?-->
<logic:equal
??name="request,page,response,session中存在的以此名稱命名的變量"
??property="此變量中的成員變量"
??parameter="將要取得的變量的標(biāo)識(shí)符,此變量存在于request|page|response|session中"
??scope="取得變量的范圍?request|page|response|session"
??value="?參加比對(duì)的值?">
??若判斷成立,則輸出此處的內(nèi)容!
??</logic:equal>
<!--=====================================================================-->
<logic:notEqual
??name="request,page,response,session中存在的以此名稱命名的變量"
??property="此變量中的成員變量"
??parameter="將要取得的變量的標(biāo)識(shí)符,此變量存在于request|page|response|session中"
??scope="取得變量的范圍?request|page|response|session"
??value="?參加比對(duì)的值?">
??若判斷成立,則輸出此處的內(nèi)容!
??</logic:notEqual>
<!--#################################################################-->
<logic:iterate
??id="唯一標(biāo)識(shí)符"
??name="在request|response|session|page中的標(biāo)識(shí)符"
??property="若是自定義類對(duì)象,此處用語表示此對(duì)象中的屬性名"
??type="取得的對(duì)象的權(quán)限定類名"
??indexId="indexid"
??offset="起始位置"
??length="循環(huán)的長(zhǎng)度">
??<li><em><bean:write?name="與logic:iterate的屬性id的內(nèi)容一致"?/></em> [<bean:write?name="index"/>]</li>
</logic:iterate>
<!--#################################################################-->
<!--<logic:empty>與<logic:notEmpty>用于判斷指定參數(shù)的屬性值是否是null值或是空字符串""-->
<!--判斷scope中存在的指定參數(shù)名的變量值是否是null值或是空字符串,若是null或空字符串則輸出標(biāo)簽之間的內(nèi)容-->
<logic:empty
??name="對(duì)象的唯一標(biāo)識(shí)符"
??scope="page|request|response|session"
??property="對(duì)象中存在的成員變量">
empty
</logic:empty>
<!--判斷scope中存在的指定參數(shù)名的變量值是否不是null值或是空字符串,若不是null或空字符串則輸出標(biāo)簽之間的內(nèi)容-->
<logic:notEmpty
??name="對(duì)象的唯一標(biāo)識(shí)符"
??scope="page|request|response|session"
??property="對(duì)象中存在的成員變量">
notEmpty
</logic:notEmpty>
<!--#################################################################-->
<!--<logic:?present>與<logic:notPresent>用于判斷指定參數(shù)的屬性是否存在-->
<!--判斷cookie中是否存在指定參數(shù)名的變量若存在則輸出標(biāo)簽之間的內(nèi)容-->
<logic:?present
??cookie="cookie中存在的變量名">
??此處是輸出內(nèi)容!
??</logic:?present>
<!--判斷header中是否存在指定參數(shù)名的變量若存在則輸出標(biāo)簽之間的內(nèi)容-->
<logic:?present
??header="取得頭部元素中存在的變量">
??此處是輸出內(nèi)容!
??</logic:?present>
<!--判斷scope中是否存在指定參數(shù)名的變量若存在則輸出標(biāo)簽之間的內(nèi)容-->
<logic:?present
??name="屬性名"
??property="對(duì)象中存在的成員變量"
??scope="page|request|response|session">
??此處是輸出內(nèi)容!
??</logic:?present>
<!--=================================================================-->
<!--判斷cookie中是否存在指定參數(shù)名的變量若存在則輸出標(biāo)簽之間的內(nèi)容-->
<logic:notPresent
??cookie="cookie中可能存在的變量名">
??此處是輸出內(nèi)容!
??</logic:notPresent>
<!--判斷header中是否存在指定參數(shù)名的變量若存在則輸出標(biāo)簽之間的內(nèi)容-->
<logic:notPresent
??header="頭部元素中存在的變量">
??此處是輸出內(nèi)容!
??</logic:notPresent>
<!--判斷scope中是否存在指定參數(shù)名的變量若存在則輸出標(biāo)簽之間的內(nèi)容-->
<logic:notPresent
??name="屬性名"
??property="對(duì)象中可能存在的成員變量"
??scope="page|request|response|session">
??此處是輸出內(nèi)容!
??</logic:notPresent>
<!--#################################################################-->
<!--<logic:match>與<logic:notMatch>用于判斷指定參數(shù)的字符串是否區(qū)配某個(gè)給定標(biāo)準(zhǔn)-->
<!--判斷cookie中存在指定參數(shù)名的變量的值,是否與指定的字符格式區(qū)配若區(qū)配則輸出此內(nèi)容-->
<logic:match
??cookie="cookie中可能存在的變量名"
??location="contains|start|end"
??value="要區(qū)配的字符格式">
</logic:match>
<!--判斷header中存在指定參數(shù)名的變量的值,是否與指定的字符格式區(qū)配若區(qū)配則輸出此內(nèi)容-->
<logic:match
??header="header中可能存在的變量名"
??location="contains|start|end"
??value="要區(qū)配的字符格式">
</logic:match>
<!--判斷scope中存在指定參數(shù)名的變量的值,是否與指定的字符格式區(qū)配若區(qū)配則輸出此內(nèi)容-->
<logic:match
??name="存在的屬性名"
??property="屬性對(duì)象中的成員變量"
??scope="page|request|response|session"
??location="contains|start|end"
??value="要區(qū)配的字符格式">
</logic:match>
<!--===================================================================-->
<!--判斷cookie中存在指定參數(shù)名的變量的值,是否與指定的字符格式區(qū)配若區(qū)配則輸出此內(nèi)容-->
<logic:notMatch
??cookie="cookie中可能存在的變量名"
??location="contains|start|end"
??value="要區(qū)配的字符格式">
</logic:notMatch>
<!--判斷header中存在指定參數(shù)名的變量的值,是否與指定的字符格式區(qū)配若區(qū)配則輸出此內(nèi)容-->
<logic:notMatch
??header="header中可能存在的變量名"
??location="contains|start|end"
??value="要區(qū)配的字符格式">
</logic:notMatch>
<!--判斷scope中存在指定參數(shù)名的變量的值,是否與指定的字符格式區(qū)配若區(qū)配則輸出此內(nèi)容-->
<logic:notMatch
??name="存在的屬性名"
??property="屬性對(duì)象中的成員變量"
??scope="page|request|response|session"
??location="contains|start|end"
??value="要區(qū)配的字符格式">
</logic:notMatch>
<!--#################################################################-->
<!--<logic:forward>用于地址轉(zhuǎn)向到指定位置-->
<logic:forward?name="與系統(tǒng)配置文件中的<global-forward>元素中的子元素<forward>區(qū)配"/>
<!--#################################################################-->
<!--?<logic:redirect>用于地址重定向到指定位置?-->
<logic:redirect
??anchor=""
??forward=""
??href=""
??name=""
??page=""
??paramId=""
??paramName=""
??paramProperty=""
??paramScope=""
??property=""
??scope=""
??transaction="">連接內(nèi)容</logic:redirect>