flex 单点登录,前端后端源码 jar包

  • S7_490866
    了解作者
  • 7MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-14 04:24
    上传日期
详细的flex前端代码以及Java后端代码,内有jar包
flex单点 前端后端代码以及jar.rar
  • flex单点 前端后端代码以及jar
  • jar
  • jdom.jar
    149.2KB
  • xbean-2.2.0.jar
    2.5MB
  • wstx-asl-3.2.0.jar
    493.1KB
  • dom4j-1.6.1.jar
    306.5KB
  • xfire-jsr181-api-1.0-M1.jar
    7.9KB
  • commons-codec-1.3.jar
    45.6KB
  • wss4j-1.5.1.jar
    528.5KB
  • xmlsec-1.3.0.jar
    278.1KB
  • xbean-spring-2.8.jar
    175.3KB
  • xfire-all-1.2.6.jar
    882.9KB
  • xml-apis-1.0.b2.jar
    106.8KB
  • commons-httpclient-3.0.jar
    272.8KB
  • wsdl4j-1.6.1.jar
    145KB
  • commons-logging.jar
    54.1KB
  • jaxen-1.1-beta-9.jar
    226.6KB
  • xercesImpl-2.6.2.jar
    987KB
  • stax-api-1.0.1.jar
    25.9KB
  • jcommon-1.0.17.jar
    302.7KB
  • swtgraphics2d.jar
    15.2KB
  • log4j-1.2.11.jar
    342.4KB
  • XmlSchema-1.1.jar
    125KB
  • stax-utils-20040917.jar
    111.1KB
  • LoginClient.java
    3.6KB
  • flex单点.txt
    2.1KB
内容介绍
--------flex前端-------- protected function application1_creationCompleteHandler(event:FlexEvent):void { //先获取cookie Alert.show("正在自动登录。。。","温馨提示"); var jsFunction:String = "GetCookie"; var key:String = "LtpaToken"; var value:String if(ExternalInterface.available) { //获取叫LtpaToken的cookie var value = ExternalInterface.call(jsFunction,key); myCookie = value; } if(value != null && value != ""){ currentState = "autoLogin"; } setTimeout( function():void{ initData();},1000,null); } private function initData():void { fAppCore.fConfig.fWebServerURL="http://"+URLUtil.getServerNameWithPort(FlexGlobals.topLevelApplication.loaderInfo.url)+"/"+fAppCore.fConfig.fWebAppName; fAppCore.fConfig.fWebChannelSet=fAppCore.fConfig.fWebServerURL+"messagebroker/amf"; /* 从其它站点自动登录 */ if(currentState == "autoLogin"){ var param:Object = new Object(); param.LtpaToken = myCookie; //获取工号 var sJsp:HTTPService = new HTTPService(); sJsp.resultFormat = "text"; sJsp.method = "POST"; sJsp.url = fAppCore.fConfig.fWebServerURL + "/LoginClient"; sJsp.addEventListener(ResultEvent.RESULT,result_test); sJsp.send(param); } } private function result_test(event:ResultEvent):void{ var msg:String = event.message.body.toString(); if(msg != "-1"){ fAppCore.dataDeal.dataDealQueryToData("userLoginFlex","userLoginFlex","clientAutoLogin",[msg]); fAppCore.dataDeal.remoteMethods.addEventListener(ResultEvent.RESULT,userLoginHandle); }else{ //TAlert.show("自动登录失败,请联系管理员!","系统提示"); txt_loginInfoLose.text = "自动登录失败,请联系管理员!"; setTimeout(function():void{ autoLostTest(3);},1000,null); } } private function autoLostTest(time:int):void{ txt_loginInfo.text = "还有"+time+"秒返回手动登录..."; time--; if(time >= 0) setTimeout(function():void{ autoLostTest(time);},1000,null); else currentState = "appLoginState"; }
评论
    相关推荐