Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想访问param标签中的请求属性(名为“msg_key”)值。它返回空
param
var message='<s:url attributes..><s:param name="msg_key" value="#request['msg_key']" /></s:url>';
虽然在属性标签中同样的工作
var message1='<s:property value="#request['msg_key']" />';
我没有得到如何访问参数标签内的请求属性?
你可以这样做:
var message = '<s:url attributes../>'+'?'+ '<s:property value="#request['msg_key']" />';
或者:
<s:url var="test" attributes..> <s:param name="msg_key" value="#request['msg_key']" /> </s:url> var message = '<s:property value="#test"/>'