Search code examples
jspstruts2meta-tags

How to retrieve the struts2 action class paramater value in html meta tag?


I would like to know how to retrieve the Struts2 action class parameter value in meta tag.

<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="2; url='?'"/>

<body onload="redirectToURL();">
<s:hidden id="redirectURL" name="redirectURL" value="%{redirect}" />
</body>

Solution

  • The property tag is not UI tag and it writes to the response out.

    <meta HTTP-EQUIV="REFRESH" content="2; url='<s:property value="%{redirect}"/>'"/>