<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/chris_bj" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/chris_bj" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 05 Aug 2008 15:04:00 GMT</lastBuildDate><title>chris_bj的专栏</title><link>http://blog.csdn.net/chris_bj/</link><item><title>Liferay关于session 问题</title><link>http://blog.csdn.net/chris_bj/archive/2008/08/05/2771122.aspx</link><wfw:comment>http://blog.csdn.net/chris_bj/comments/2771122.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chris_bj/comments/commentRss/2771122.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2771122</trackback:ping><description>最近搞了Liferay真是郁闷，研究好些天才搞明白一些基本东西。下面写一个在liferay比较重要的一个东西就是session ； 写portlet的时候 大家都会想到怎么得到用户的 session ID值 ；可怎么取session值就比较麻烦了。可能说到session 大家都会想到session值比较好取。而在liferay里面 就不是这么简单了，在liferay登陆的时候 把用户id 值放到了 session.setAttribute(&quot;j_username&quot;); 里面去了 可当我们get的时候 得到的值取是空的这是因为liferay里面有两个session ，而这两个session并不是同类的 所以当我们取的时候就是空值了，&lt;FONT style=&quot;LINE-HEIGHT: 1.3em&quot;&gt;PortletSession 和 HttpSession 这两个 ，通过调试可以看到，liferay在进行环境初始化时，是以USER_ID的属性名进行的保存，所以，以下这简单的两句就是 &lt;/FONT&gt;&lt;WBR&gt;&lt;BR&gt;&lt;FONT style=&quot;LINE-HEIGHT: 1.3em&quot;&gt;HttpSe&lt;img src =&quot;http://blog.csdn.net/chris_bj/aggbug/2771122.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 05 Aug 2008 23:04:00 +0800</pubDate><author>chris_bj</author><comments>http://blog.csdn.net/chris_bj/archive/2008/08/05/2771122.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/chris_bj/archive/2008/08/05/2771122.aspx</guid><dc:creator>chris_bj</dc:creator><fs:srclink>http://blog.csdn.net/chris_bj/archive/2008/08/05/2771122.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/chris_bj/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/chris_bj/~7383078/207904553/5492596</fs:itemid></item></channel></rss>
