Author: hannes
Date: 2009-01-15 12:27:11 +0100 (Thu, 15 Jan 2009)
New Revision: 9482
Modified:
helma-ng/trunk/modules/helma/webapp/continuation.js
Log:
Make helma.webapp.continuation work with recent changes in Helma NG, replacing req.data with req.params.
Details at http://dev.helma.org/trac/helma/changeset/9482
Modified: helma-ng/trunk/modules/helma/webapp/continuation.js
===================================================================
--- helma-ng/trunk/modules/helma/webapp/continuation.js 2009-01-14 13:36:04 UTC (rev 9481)
+++ helma-ng/trunk/modules/helma/webapp/continuation.js 2009-01-15 11:27:11 UTC (rev 9482)
@@ -18,7 +18,7 @@
* <input type="submit"/>\
* </form>');
* Continuation.nextPage();
- * var foo = req.data.foo;
+ * var foo = req.params.foo;
* res.write('<a href="' + Continuation.nextUrl() + '">click here</a>');
* Continuation.nextPage();
* res.write("you said: " + foo);
@@ -90,7 +90,7 @@
};
Continuation.startId = function(req, id) {
- id = req.data.helma_continuation || id;
+ id = req.params.helma_continuation || id;
return id;
}
@@ -105,11 +105,11 @@
* @return the continuation result
*/
Continuation.markStart = function(req, res, id) {
- if (!req.data.helma_continuation) {
+ if (!req.params.helma_continuation) {
// set query param so helma knows to switch rhino optimization level to -1
res.redirect(Continuation.nextUrl(req, id));
} else {
- id = req.data.helma_continuation;
+ id = req.params.helma_continuation;
var cont = new Continuation();
log.info("Recording continuation start: " + id);
setCallback(req, id, cont);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.