Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DWR questions

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic