r9484 - helma-ng/trunk/apps/demo

[email protected]
Newsgroups gmane.comp.java.helma.cvs
Message-ID <[email protected]>
Author: hannes
Date: 2009-01-15 12:58:58 +0100 (Thu, 15 Jan 2009)
New Revision: 9484

Modified:
   helma-ng/trunk/apps/demo/actions.js
Log:
Make logging action work with recent changes in Helma NG by replacing req.data with req.params.

Details at http://dev.helma.org/trac/helma/changeset/9484

Modified: helma-ng/trunk/apps/demo/actions.js
===================================================================
--- helma-ng/trunk/apps/demo/actions.js	2009-01-15 11:27:26 UTC (rev 9483)
+++ helma-ng/trunk/apps/demo/actions.js	2009-01-15 11:58:58 UTC (rev 9484)
@@ -30,9 +30,9 @@
 
 // demo for log4j logging
 function logging_action(req, res) {
-    if (req.data.info) {
+    if (req.params.info) {
         log.info("Hello world!");
-    } else if (req.data.error) {
+    } else if (req.params.error) {
         try {
             foo.bar.moo;
         } catch (e) {
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.