DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21609>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21609 [PATCH] NaN error in XSP version of the calc flow example ------- Additional Comments From [EMAIL PROTECTED] 2003-07-26 12:12 ------- Is this still necessary? If so, can someone explain why directly referencing the parameter does not work but getParameter does? Here is the text of the patch: Index: src/webapp/samples/flow/calc/calc.js =================================================================== RCS file: /home/cvspublic/cocoon-2.1/src/webapp/samples/flow/calc/calc.js,v retrieving revision 1.3 diff -u -r1.3 calc.js --- src/webapp/samples/flow/calc/calc.js 14 Jul 2003 09:30:45 -0000 1.3 +++ src/webapp/samples/flow/calc/calc.js 15 Jul 2003 14:22:35 -0000 @@ -22,13 +22,13 @@ { var uri = "page/getNumber" + name.toUpperCase(); cocoon.sendPageAndWait(uri, { "a" : a, "b" : b }); - return parseFloat(cocoon.request.name); + return parseFloat(cocoon.request.getParameter(name)); } function getOperator(a, b) { cocoon.sendPageAndWait("page/getOperator", { "a" : a, "b" : b }); - return cocoon.request.operator; + return cocoon.request.getParameter("operator"); } function sendResult(a, b, op, result)