a1: -
any:a1 was null, set to 0
a1: 0
page:a1 was 0, set to 1
a1: 1
request:a1 was null, set to 2
session:a1 was null, set to 3
application:a1 was null, set to 4
Request.a1: 2
Session.a1: 3
Application.a1: 4
a1: 1
page:a1 was 1, set to null
a1: 2
request:a1 was 2, set to null
a1: 3
session:a1 was 3, set to null
a1: 4
application:a1 was 4, set to null
a1: -
a2: -
application:a2 was null, set to 4
a2: 4
session:a2 was null, set to 3
a2: 3
request:a2 was null, set to 2
a2: 2
page:a2 was null, set to 1
a2: 1
G1
page:a1 was G1, set to P1
P1
G2
page:a2 was G2, set to P2
P2
Values created in the template:
String: s [java.lang.String]
Number: 1 [java.math.BigDecimal]
Boolean: true [java.lang.Boolean]
Date-time: [IGNORED]
Sequence: [1, 2, 3] [freemarker.template.SimpleSequence]
Hash: {"a": 1, "b": 2, "c": 3} [freemarker.core.HashLiteral$SequenceHash]
Values created in Java:
LinkedList: [1, 2, 3] [freemarker.template.SimpleSequence]
ArrayList: [1, 2, 3] [freemarker.template.SimpleSequence]
MyList: [1, 2, 3] [freemarker.template.SimpleSequence]
LinkedHashMap: {a=1, b=2, c=3} [freemarker.template.SimpleHash]
TreeMap: {a=1, b=2, c=3} [freemarker.template.SimpleHash]
MyMap: [IGNORED] [freemarker.template.SimpleHash]
TreeSet: [1, 2, 3] [freemarker.template.SimpleSequence]