Passing the Session from the Portlet Session to the Http Session
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Passing the Session from the Portlet Session to the Http Session




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Passing the Session from the Portlet Session to the Http Session  
bongsuyo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-12-04 03:36 AM

Hi,

Is there a way to pass the portlet session to the http session?  I tried cas
ting the portlet session as http session but it gives me a Class Casting Exc
eption error.

What I intend to do is to pass my session data from the portlet session to t
he http session, whereby, i can reuse the data.

Is this possible?  Help is greatly appreciated.  Thanks.





[ Post a follow-up to this message ]



    Re: Passing the Session from the Portlet Session to the Http Session  
alex


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-12-04 05:34 PM

Hi bongsuyo,

I think your question is related to integrate normal web app with portal .
Looks no way share portletRequest session data (Paramters or Attributes)
with other web app's httpRequest session data, but if you deployed noraml
web app on WebSphere_Portal node, then
the sessionId value can be same (you can use it to do some sercurity work).
Other way, you also can write some servlet inside portlet war file.
Hope can help you a little.
"bongsuyo" <bongsuyo@firemail.de> wrote in message
news:484092820.1081734467083.JavaMail.wasadmin@swg3ws006...
> Hi,
>
> Is there a way to pass the portlet session to the http session?  I tried
casting the portlet session as http session but it gives me a Class Casting
Exception error.
>
> What I intend to do is to pass my session data from the portlet session to
the http session, whereby, i can reuse the data.
>
> Is this possible?  Help is greatly appreciated.  Thanks.







[ Post a follow-up to this message ]



    Re: Passing the Session from the Portlet Session to the Http Session  
bongsuyo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-13-04 03:33 AM

hi alex,

thanks.  actually, my servlet is inside the war file.  but since the servlet
 is using HttpRequest and HttpResponse, i can't seem to be able to pass the 
session from the portal on it.

I was hoping i could just pass my session beans from the portlet to the serv
let, but seems like to no avail, or, is there a workaround on this, to pass 
the session data to the servlet that resides to the same war file?

thanks for the help.





[ Post a follow-up to this message ]



    Re: Passing the Session from the Portlet Session to the Http Session  
Michael Harris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-14-04 07:10 PM

Passing Java objects from a portlet to a servlet through a session object
(even in the same .war file) is not supported for portlets written using the
IBM portlet API.  Some people have posted code snippets here in the past
that use undocumented API to enable you to do this. However, the snippets
are different for each version of WPS and sometimes different for various
fixpacks or e-fixes on a particular version.

Your other choices are to use the servlet context, request parameters, your
own cache somewhere, and others.  All of these techniques have limitations
in security, clustering, or deployment and configuration.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:06 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register