Sealyu

          --- 博客已遷移至: http://www.sealyu.com/blog

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            618 隨筆 :: 87 文章 :: 225 評論 :: 0 Trackbacks

          seam有個一個內置的component,叫做redirect。它具有獲取當前view的能力當得到登陸授權后,可以直接獲得登錄前的地址進行訪問。

          在component.xml里添加:

          <event type="org.jboss.seam.security.notLoggedIn">
          <action execute="#{redirect.captureCurrentView}"/>
          </event>
          <event type="org.jboss.seam.security.postAuthenticate">
          <action execute="#{redirect.returnToCapturedView}"/>
          </event>

          posted on 2009-05-13 09:36 seal 閱讀(355) 評論(0)  編輯  收藏 所屬分類: Seam
          主站蜘蛛池模板: 泗阳县| 双牌县| 墨江| 诸暨市| 镇江市| 新疆| 嘉鱼县| 和林格尔县| 交城县| 丹江口市| 伊吾县| 惠安县| 扶绥县| 绵竹市| 册亨县| 思南县| 邛崃市| 长武县| 岑溪市| 清丰县| 桦南县| 新闻| 敦煌市| 南岸区| 庆安县| 汉沽区| 岳阳市| 漠河县| 达州市| 泗阳县| 班戈县| 嘉善县| 新化县| 北宁市| 砀山县| 攀枝花市| 新安县| 比如县| 泸西县| 武定县| 开远市|