This is really a Servlet API thing, and doesn't really have anything to do with OFBiz, so I'm not sure you'll find a solution in OFBiz.

You should look at how whatever you are using to get the AJAX message is mounted in the server, and make sure that the session token is passed along with it and that whatever is receiving the message is in the same webapp as the OFBiz webapp you want to share the session with.

This is all pretty low level or fundamental servlet stuff, so that is where you should look for answers. OFBiz just sits on a servlet container, it doesn't do anything special for this.

-David


On Aug 19, 2006, at 12:22 AM, Sayoke Shome wrote:

Hi all,

I have integrated Ajax programming pattern with Ofbiz environment. It is working fine. I am getting the request parameters I am sending asynchronously using “XMLHttpRequest “ into business methods. But I am not able to get the session the application was using.

I can do this using an “Api” of DWR framework named “WebContextFactory”. But I don’t want to use that “api” as per business requirement. Can anybody tell me whether Ofbiz “Api” have such provisions or not. All I need is to access session of the page.

For your information “request.getSession()” is not working here , it is not returning the session application is using. Instead of that it is returning some new session and that session naturally does not have the session attributes I need.

Thanks in advance,





eCommerce Developer



Sayoke Shome
Technical Associate ( ENSIA group)

Tech mahindra

[EMAIL PROTECTED]

tel:
mobile:

(91)-33-40098100 8321
9831105664



Add me to your address book...

Want a signature like this?



====================================================================== ======================================================

Tech Mahindra, formerly Mahindra-British Telecom.

Disclaimer:

This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review at http://www.techmahindra.com/ Disclaimer.htmlexternally and http://tim.techmahindra.com/ Disclaimer.html internally within Tech Mahindra.

====================================================================== ======================================================


Reply via email to