• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

DWR questions

clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!