开发者

blank_target in struts2

开发者 https://www.devze.com 2023-02-20 05:35 出处:网络
can any one suggest how to write target=\"_blank\" in struts2. Itried so开发者_如何学Cmething like below but the hyperlink was not working

can any one suggest how to write target="_blank" in struts2. I tried so开发者_如何学Cmething like below but the hyperlink was not working

<s:url id="imageDownload" namespace="/" action="downloadImage" var="urlTag">
    <s:param name="ImageFileName" value="%{ImageFileName}"></s:param>
    <s:param name="id" value="%{id}"></s:param>
</s:url>

<a  class="linkView" href="<s:property value="#urlTag" />" target="_blank">
    <s:property value="ImageFileName" />
</a>   

thanks


I think

<a  class="linkView" href="<s:property value="#urlTag" />" target="_blank">
   <s:property value="ImageFileName" />
</a>

is correct.

0

精彩评论

暂无评论...
验证码 换一张
取 消