简单就是美!

超越黎明

俞黎敏ID:YuLimin
81393次访问,排名1055好友17人,关注者210
阿敏总司令:简单就是美!
博客:http://YuLimin.JavaEye.com

只有正确地找到问题的根本所在,才能成功地解决掉问题:)
Read a bit and take it out, then come back read some more.
YuLimin的文章
原创 62 篇
翻译 0 篇
转载 0 篇
评论 65 篇
阿敏总司令的公告
三等功
俞黎敏
阿敏总司令
来自:福建莆田@广州
最近评论
yd1221:ǒu lái nǐ de dì pán cǎi cǎi ,hē hē ,xī wàng yě dào wǒ de dì pán zhuǎn zhuǎn ɑ !
偶 来 你 的 地 盘 踩 踩 ,呵 呵 ,希 望 也 到 我 的 地 盘  转  转 啊 !



 — 快典网( http://kdd.cc/ )自动注音
myshijieye:love注册香港公司
健康管理
pvc door
服装批发
jamesqiu:花点时间学习gvim,这是值得的。
007pro:je上核心人员都是极端务实的人群,有时候我觉得怎么可以这样,je的核心会觉的说,最好这样~就是这么简单。
我也是被隐藏扣分之后才明白,所以即便是博客上也对这类事情不做评述,虽然我是很支持你的
所以即便象俞兄这样的用户也不会有特权的,我记得老庄很久以前叹息说多亏有自己的空间,的确如此。
oneyear2008:我刚接触java,这对于我来说是一个很好的学习步骤!谢谢!
文章分类
收藏
    相册
    1大学的我
    2部队当兵
    3生活相片
    CSDN好友
    【HongSoft@业务整合】(RSS)
    axman
    Java憩园
    jini李日贵
    lizongbo
    zxhong(RSS)
    椅子(HERO2008第三会场主持人)
    用耳朵去聆听,用心来感受
    苏酩的Blog空间
    超越黎明(RSS)
    银狐999(RSS)
    青润心情(RSS)
    存档
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 Flex开发中使用Ant编译.mxml成.swf后,在.swf里使用Session的解决方法收藏

    新一篇: 解决掉Eclipse插件之WebLogic Plugin 2.0.0的BUG

    Flex开发中使用Ant编译.mxml成.swf后,在.swf里使用Session的解决方法

    http://iamin.blogdriver.com/iamin/1176113.html

    Flex Remote Object中直接使用HttpSession的方法在Flex Samples里有Session的操作使用例子:
    http://localhost:8080/samples/explorer/misc/ServerSessionDemo.mxml
    但是,使用mxmlc编译.mxml成.swf后,在.swf里是没有办法使用Session的

    解决办法:可以通过RemoteObject的通讯方式来进行Session的处理

    http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00002247.htm

    Working with session data
    A Java object that you call using the tag has access to request, response, and servlet data. From within a Java object, you can call the following methods:

    Method Description
    flashgateway.Gateway.getHttpRequest()

    Returns the HttpServletRequest object for the current request. Macromedia recommends that you access session data and other request data through the getHttpRequest() method.

    flashgateway.Gateway.getHttpResponse()

    Returns the HttpServletResponse object for the current request.

    flashgateway.Gateway.getServletConfig()

    Returns the ServletConfig object for the calling servlet.

    To compile calls with these methods in their classes, you must have the WEB-INF/lib/flashgateway.jar file in your classpath.

    The following example shows code in a Java class for accessing a session attribute:

    String fooAttrib = (String)flashgateway.Gateway.getHttpRequest().getSession().
    getAttribute("attr1");

    这样,.mxml文件经过编译成.swf后,照样可以进行使用Session了。

    发表于 @ 2006年04月30日 20:30:00|评论(loading...)|编辑

    旧一篇: 解决掉Eclipse插件之WebLogic Plugin 2.0.0的BUG

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © 阿敏总司令