java - Access request attribute inside struts 2 param tag? -
java - Access request attribute inside struts 2 param tag? -
this question has reply here:
how jsp scriptlet value in struts tag 2 answersi want access request attribute (named 'msg_key') value in param
tag . homecoming empty
var message='<s:url attributes..><s:param name="msg_key" value="#request['msg_key']" /></s:url>';
though same work in property tag
var message1='<s:property value="#request['msg_key']" />';
i not getting how access request attribute within param tag?
you can this:
var message = '<s:url attributes../>'+'?'+ '<s:property value="#request['msg_key']" />';
or:
<s:url var="test" attributes..> <s:param name="msg_key" value="#request['msg_key']" /> </s:url> var message = '<s:property value="#test"/>'
java jsp struts2
Comments
Post a Comment