Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

V037

  • Loading branch information...
commit 839789cfb25d857403dba8039169329f6cf2099a 1 parent fca3425
@mrohad authored
View
15 WWW/counter/applicationLogic.js
@@ -1,15 +0,0 @@
-(function(log,lib,application,request,responseHead,commands,session) {commands.writeEscapedText("");
- var counter = 1;
- application.get("counter",function(value){
- log.debug("ApplicationLOGIC.JSSP, value - " +value);
- if(value == undefined){
- application.set("counter",1);
- }else{
- counter = value+1;
- application.set("counter",counter);
- }
- request.parameters.counter = counter;
- commands.forward("counter/view.jssp");
- });
-
-})
View
15 WWW/counter/logic.js
@@ -1,15 +0,0 @@
-(function(log,lib,application,request,responseHead,commands,session) {commands.writeEscapedText("");
- var counter = 1;
- application.get("counter",function(value){
- log.debug("COUNTER.JSSP, value - " +value);
- if(value == undefined){
- application.set("counter",1);
- }else{
- counter = value+1;
- application.set("counter",counter);
- }
- request.parameters.counter = counter;
- commands.forward("counter/view.jssp");
- });
-
-})
View
15 WWW/counter/sessionLogic.js
@@ -1,15 +0,0 @@
-(function(log,lib,application,request,responseHead,commands,session) {commands.writeEscapedText("");
- var counter = 1;
- session.get("counter",function(value){
- log.debug("SESSIONLOGIC.JSSP, value - " +value);
- if(value == undefined){
- session.set("counter",1);
- }else{
- counter = value+1;
- session.set("counter",counter);
- }
- request.parameters.counter = counter;
- commands.forward("counter/view.jssp");
- });
-
-})
View
14 WWW/counter/view.js
@@ -1,14 +0,0 @@
-(function(log,lib,application,request,responseHead,commands,session) {commands.writeEscapedText("%3CHTML%3E%0A");
-commands.writeEscapedText("%09%3CHEAD%3E%3CTITLE%3EApplication%20Scope%20Counter%20Tester%3C/TITLE%3E%3C/HEAD%3E%0A");
-commands.writeEscapedText("%09%3CBODY%3E%0A");
-commands.writeEscapedText("%09");
- var counter = request.parameters.counter;
- if(counter==1)
- commands.write("First Time");
- else
- commands.write("Number of users:" + counter);
-
-
-commands.writeEscapedText("%09%3C/BODY%3E%0A");
-commands.writeEscapedText("%3C/HTML%3E%0A");
-})
Please sign in to comment.
Something went wrong with that request. Please try again.