如何在displaytag中创建链接? [英] How can i create a link in displaytag?

查看:147
本文介绍了如何在displaytag中创建链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用struts2在display标签中创建编辑,删除链接。我怎么能这样做?
如果有人知道请帮助我....

I want to create edit , delete link in display tag with struts2. How can i do so ? If anybody knows please help me ....

我这样做。

<display:column property="id" title="ID" href="details.jsp" paramId="id" />

但链接不会转到details.jsp。它不会去任何地方。可能的原因

but the link is not going to details.jsp .It doesn't go anywhere . what can be the possible reason

推荐答案

这是由以下代码完成的。

It is done by the following code.

<display:column  title="Edit">
                    <s:url id="updateUrl" action="marketing/update.action">
                        <s:param name="id" value="#attr.countrylist.id" />
                    </s:url>
                    <s:a href="%{updateUrl}" theme="ajax"  targets="countrylist">Update</s:a>
                </display:column>

感谢所有答案

这篇关于如何在displaytag中创建链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆