% request.setAttribute("decorator", "none"); response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %>
Creating arrays
OGNL follows Java syntax to create arrys.
Create an array of integers:
new int[] {0, 1, 2}
on the OGNL console and hit enter. Do it for me
Creating lists
To create a list, enclose a list of comma separated expression in a pair of braces.
Create a list of Strings:
{'Is', 'there', 'any', 'body', 'out', 'there?'}
on the OGNL console and hit enter. Do it for me
Creating maps
To create a map, use the syntax #@MAP_TYPE@{key:value}.
Create a LinkedHashMap:
#@java.util.LinkedHashMap@{'name': 'John Galt', 'job' : 'Engineer'}
on the OGNL console and hit enter. Do it for me