OK - in one jsp page a bean is created like so:
<jsp:useBean id="xmlPage" scope="session" class="box.cms.xmlPage"/>
Some variables are set on it, it is initialized, it works, all is good.
Then I make an AJAX request from the generated page to another jsp page on the server like so:
req.onreadystatechange = callback;
req.open('GET',url,true);
req.setRequestHeader("Content-type", "text/xml");
req.setRequestHeader("Content-length", content.length);
req.setRequestHeader("Connection", "close");
req.send(content);
The new jsp page tries to access the bean:
isLocked = xmlPage.isPageLocked(userID);
"There has been a problem with the request."
Why?
BTW I know nothing about Java beans and most of this isn't even my code. I'm cleaning up someone else's mess here...
Thanks.
<jsp:useBean id="xmlPage" scope="session" class="box.cms.xmlPage"/>
Some variables are set on it, it is initialized, it works, all is good.
Then I make an AJAX request from the generated page to another jsp page on the server like so:
req.onreadystatechange = callback;
req.open('GET',url,true);
req.setRequestHeader("Content-type", "text/xml");
req.setRequestHeader("Content-length", content.length);
req.setRequestHeader("Connection", "close");
req.send(content);
The new jsp page tries to access the bean:
isLocked = xmlPage.isPageLocked(userID);
"There has been a problem with the request."
Why?
BTW I know nothing about Java beans and most of this isn't even my code. I'm cleaning up someone else's mess here...
Thanks.