Access struct2 variable in javascript : I have set a strut varaible in the jsp. 

    <s:set var="actionName" value="stockCountFind.action" scope="request" />
In the javascript function I access it using 

    function getAttributeAndGoToAction()
    {
      var actionName = <s:property value="#actionName"/>;
      alert(actionName);
    }

But when I try to call the js function. It says it isn't defined. 