Lon,
Heres the URL -
req.open("POST", "http://localhost:8080/erp/control/dyna",
true);
Amit
-----Original Message-----
From: Lon Binder [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 7:18 PM
To: [email protected]
Subject: RE: AJAX and HttpSession
Amit,
What URL are you requesting? The app server doesn't know the difference
between plain browser requests and ajax requests. It's just a matter of
URL construction.
- Lon
-----Original Message-----
From: Amit Shinde [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 9:41 AM
To: [email protected]
Subject: AJAX and HttpSession
Hello,
I was wondering if anyone has played with AJAX. I want to call a
OFBiz service by making an XMLHttpRequest. I have a RequestHandler that
is supposed to process this request. The problem I am facing is of
HttpSession.
Even though I am logged in, I get userLogin, dispatcher and delegator
attributes null. Is there a way where we can get our HttpSession
attributes from XMLHttpRequest. Do we need to do any special thing or is
this just a limitation?
Without a valid HttpSession, I obviously cant run the service
unless I pass userLoginId in the XMLHttpRequest and get UserLogin value
through delegator.
This approach will pose a security hazard nonetheless.
Any insight will be appreciated.
Thanks in advance,
Amit Shinde