Let's start with this:
http://www.omnytex.com/test.zip
Just unzip into ${Tomcat}/webapps and try it... the first time you click
the button you should see an alert saying testAttribute is null, the
second time it should say "Test attribute has been set". Now, do this
in Firefox and check each request that results from clicking the button
with Firebug... specifically, expand the requests in the Console view,
click the Headers tab, and look for JSESSIONID in the request headers
(that's how cookies are sent)... you should always see the same value,
if you don't then something funky is going on. FYI, if you don't see
the requests, make sure you check the option in Firebug to record
XMLHttpRequest traffic (it may be off by default).
If you take this app and it works, modify it to the point where it
doesn't work and post it for us and we'll see if (a) we get the same
results, and (b) try to figure out why... if it doesn't work as-is, then
there's definitely something wrong in your environment.
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
(2006, Apress, ISBN 1-59059-695-1)
and "JavaScript, DOM Scripting and Ajax Projects"
(2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
Hassan Schroeder wrote:
On 5/21/07, Williams, Allen <[EMAIL PROTECTED]> wrote:
As I said in my earlier post, the session being returned by getSession()
is a new one;
Can you create a simple test case WAR to demonstrate the failure?
I have seen no such problems using Prototype, YUI, or DWR, which
I'm currently incorporating into an app.
To test your contention, I've printed the sessionId in a JSP page and
made an XHR request via DWR to another simple JSP which logs the
sessionId; it's the same, and that second controller page can access
the same session attributes as the original page.
So I have to suspect there's something odd about your setup -- the
test case would be useful...
FWIW,
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]