#set ($pagenum = $context.findValue("pagenum") ) #if ( $pagenum ) #set($pagenum = $numberutils.toInt($pagenum)) #else #set ( $pagenum = 1) #end #set ( $hitssessionid = $context.findValue("hitssessionid")) #set ($sourcepath = $asset.sourcepath ) #set($totalpages = $numberutils.toInt($asset.pages))