<% 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 %>

if tag

The if tag allows you to optionally execute a JSP section. Multiple elseif tags and one else tag can be associated to an if tag.

To say hello to John Galt type:

        <s:if test="name == 'John Galt'">
            Hi John
        </s:if>
        <s:else>
            I don't know you!
        </s:else>
    

on the JSP console and hit enter. Do it for me

iterator tag

The iterator tag loops over an Iterable object one object at a time into the Value Stack (the value will be on top of the stack).

To print the all the elements in the "bands" property type:

        <s:iterator value="bands">
            <s:property />
            <br />
        </s:iterator>
    

on the JSP console and hit enter. Do it for me

[More on the if tag] [More on the iterator tag]