posts - 325,  comments - 25,  trackbacks - 0
          1.將以下三個常用struts tags 放到一個jsp頁面下:
              tags.jsp
              <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
              <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
              <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

            2.bean標(biāo)簽
           <bean:cookie id="sess" name="JSESSIONID" value="JSESSIONID-IS-UNDEFINED"/>
          將JSESSIONID的cookie定義為id為sess的bean
          顯示sess的comment屬性:<bean:write name="sess" property="comment"/>
          顯示sess的maxAge屬性:<bean:write name="sess" property="maxAge"/>
          顯示sess的path屬性:<bean:write name="sess" property="path"/>
          顯示sess的secure屬性:<bean:write name="sess" property="secure"/>
          顯示sess的value屬性:<bean:write name="sess" property="value"/>
          顯示sess的version屬性:<bean:write name="sess" property="version"/> 

          <bean:define/>:
          <bean:define id="bianliang name" value="bianliang value"/>  int i=0;
          <bean:define id="variable1" name="variable2"/> //將variable2賦給variable1,同時定義了variable1
          <bean:define id="variableName" name="beanName" property="beanProperty"/>將bean的property賦給variableName
          <bean:define id="bean1" name="bean2" scope="scope1" toScope="scope2"/> 將scope1范圍中的bean1轉(zhuǎn)換到scope2范圍中的bean2

          <bean:header/>:
          <bean:header id="variableName" name="headerName"/> 將headerName的請求頭定義成variableName變量

          <bean:parameter/>:
          <bean:parameter id="variableName" name="parameter"/>將請求parameter的請求參數(shù)的值賦給variableName
          url?b=xxx
          <bean:parameter id="a" name="b"/>

          <bean:include/>:
          <bean:include id="beanName" path="uri"/>將uri對應(yīng)的jsp資源賦給bean
          posted on 2008-05-15 23:00 長春語林科技 閱讀(755) 評論(0)  編輯  收藏 所屬分類: struts
          <2008年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

           

          長春語林科技?xì)g迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 阳新县| 遂川县| 福海县| 宣武区| 安陆市| 稷山县| 东光县| 手游| 囊谦县| 宣汉县| 尖扎县| 陵川县| 芜湖县| 靖江市| 射阳县| 平遥县| 望谟县| 确山县| 台中县| 马龙县| 连城县| 新闻| 丹凤县| 陈巴尔虎旗| 二连浩特市| 荔波县| 平舆县| 武汉市| 青海省| 沭阳县| 临安市| 高青县| 卓尼县| 万源市| 易门县| 远安县| 兴化市| 侯马市| 榕江县| 乳山市| 常宁市|