File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

DWR questions

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

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

Joined: Nov 14, 2006
Posts: 5

Are you using DWR from

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 ]
I agree. Here's the link:
subject: DWR questions
It's not a secret anymore!