Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » HttpSession issue
HttpSession issue [message #637279] Thu, 04 November 2010 19:47 Go to next message
Irwinm is currently offline IrwinmFriend
Messages: 3
Registered: November 2010
Location: US Virginia
Junior Member
Greetings all,

Forgive the noob nature of the question, but I am pretty new to RAP and I'm seeing some unexpected behavior. Here is the scenario:

I have a servlet that receives a POST from outside my app. I take some of the data and wrap it in a value object and put the VO in the session. When I try to access the session from the UI view (via a button click) using RWT.getSessionStore().getHttpSession(), the session attribute for the VO is not there.

I figured this would be a pretty simple operation to try before I moved on to more advanced updating of the UI, but I can't even get this to work. Am I missing something simple? Is the HttpSession in the UI not the same as the one referenced by request.getSession() in the servlet?

Thanks in advance.
Irwin
Re: HttpSession issue [message #637433 is a reply to message #637279] Fri, 05 November 2010 13:45 Go to previous messageGo to next message
Irwinm is currently offline IrwinmFriend
Messages: 3
Registered: November 2010
Location: US Virginia
Junior Member
I found this posting, http://www.eclipse.org/forums/index.php?t=msg&th=23562&a mp; which is similar to my issue. Does anyone know if there has been any improvements to the framework that might help in this scenario?

Thanks again!

[Updated on: Fri, 05 November 2010 13:46]

Report message to a moderator

Re: HttpSession issue [message #637442 is a reply to message #637433] Fri, 05 November 2010 14:13 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
the HttpSession is not cleared anymore at a session restart. See bug
306599: Improve session restart
https://bugs.eclipse.org/bugs/show_bug.cgi?id=306599
If you experience problems please fill a bugzilla with a snippet to
reproduce it.
Thanks,
Ivan

On 11/05/2010 3:46 PM, Irwinm wrote:
> I found this posting, which is similar to my issue. Does anyone know
> if there has been any improvements to the framework that might help in
> this scenario?
>
> Thanks again!
Re: HttpSession issue [message #637458 is a reply to message #637442] Fri, 05 November 2010 15:08 Go to previous message
Irwinm is currently offline IrwinmFriend
Messages: 3
Registered: November 2010
Location: US Virginia
Junior Member
Figured it out, there is no bug, it works as advertised.

Suffice it to say I did something really stupid Confused , but thanks for the reply Ivan!

Irwin
Previous Topic:ImageRegistry problem
Next Topic:Menu contribution issue
Goto Forum:
  


Current Time: Sat Apr 27 00:27:00 GMT 2024

Powered by FUDForum. Page generated in 0.03189 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top