如何检索 html 元标记中的 struts2 操作 class 参数值?
How to retrieve the struts2 action class paramater value in html meta tag?
我想知道如何在元标记中检索 Struts2 操作 class 参数值。
<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="2; url='?'"/>
<body onload="redirectToURL();">
<s:hidden id="redirectURL" name="redirectURL" value="%{redirect}" />
</body>
property
tag 不是 UI 标记,它会写入响应。
<meta HTTP-EQUIV="REFRESH" content="2; url='<s:property value="%{redirect}"/>'"/>
我想知道如何在元标记中检索 Struts2 操作 class 参数值。
<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="2; url='?'"/>
<body onload="redirectToURL();">
<s:hidden id="redirectURL" name="redirectURL" value="%{redirect}" />
</body>
property
tag 不是 UI 标记,它会写入响应。
<meta HTTP-EQUIV="REFRESH" content="2; url='<s:property value="%{redirect}"/>'"/>