{groovy:output=wiki|showErrorOutput=true}
def index = request.getSession(true).getServletContext().getAttribute("climb.index")
if (index == null )
{
index = new Index()
request.getSession(true).getServletContext().setAttribute("climb.index", index)
}
class Index
{
Index()
{
out.println "Creating index..."
}
}
class Climb
{
String name
String grade
String stars
String length
String extra
} |