GeeCON Prague 2014*
The moose likes Other Open Source Projects and the fly likes DWR questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "DWR questions" Watch "DWR questions" New topic
Author

DWR questions

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hi.
1. Suppose my web application created a session-scoped object and assign it shoppingCart name inside my Action class.
How to access it use DWR ?
In this case, dwr.xml will has : creator=null and scope=session ?
How DWR will know which object to call in this way since there is no clue in dwr.xml ?
2. The oppest way :
DWR have to create a session-based object when it called for the first time.
How to access this created object later in my JSP, since dwr.xml doesn't supply a name for it ?
Patrick Fust
Greenhorn

Joined: Nov 14, 2006
Posts: 5
Hi.

Are you using DWR from http://getahead.ltd.uk?

I'm not quite sure what your question is, but if you want your DWR method to have a HttpSession, just add it to your method and DWR takes care of it.

Like this:


In dwr.xml:


It the javascript:



Does this help?

Best regards,
Patrick Fust
[ November 21, 2006: Message edited by: Patrick Fust ]
 
GeeCON Prague 2014
 
subject: DWR questions