Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

V0.3

  • Loading branch information...
commit 1b5843886d13bfaf643eca8e1a7be166d6fdf02d 1 parent b31604b
@mrohad authored
Showing with 14 additions and 14 deletions.
  1. +14 −14 README.markdown
View
28 README.markdown
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.