posts - 325,  comments - 25,  trackbacks - 0
          1.將以下三個(gè)常用struts tags 放到一個(gè)jsp頁(yè)面下:
              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,同時(shí)定義了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的請(qǐng)求頭定義成variableName變量

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

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

           

          長(zhǎng)春語(yǔ)林科技?xì)g迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊(cè)

          收藏夾

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 抚远县| 尼木县| 渝中区| 迭部县| 定襄县| 柞水县| 安溪县| 盐边县| 福海县| 三门县| 原阳县| 通渭县| 康平县| 蛟河市| 海林市| 瑞昌市| 蒙阴县| 庆元县| 寿阳县| 长葛市| 岑溪市| 封丘县| 辽源市| 乌鲁木齐市| 金寨县| 布尔津县| 新竹市| 潢川县| 莱阳市| 德安县| 丹凤县| 海安县| 昌吉市| 肥西县| 绿春县| 洛浦县| 威海市| 光山县| 射洪县| 福海县| 化隆|