Permalink
Browse files

V0.3

  • Loading branch information...
mrohad committed Aug 19, 2010
1 parent b31604b commit 1b5843886d13bfaf643eca8e1a7be166d6fdf02d
Showing with 14 additions and 14 deletions.
  1. +14 −14 README.markdown
View
@@ -114,20 +114,20 @@ One can easily redirect:
How to use the session scope, the counter Example: (separation of logic and view)
logic.jssp:
-<?
- 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");
- });
-?>
+ <?
+ 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.jssp:
<HTML>
<HEAD><TITLE>Application Scope Counter Tester</TITLE></HEAD>

0 comments on commit 1b58438

Please sign in to comment.