简体   繁体   English

如何在Struts2中重定向到另一个Tiles布局?

[英]How to redirect to another Tiles layout in Struts2?

I'm using Tiles in my Struts2 web app. 我在Struts2网络应用程序中使用了Tiles。 I have page where I display all records. 我有显示所有记录的页面。 I use a tiles layout for displaying all the records. 我使用图块布局来显示所有记录。 Now, if I click a delete on one of the records, it should display me the same page again without the one I deleted. 现在,如果我单击其中一条记录上的删除,它应该再次显示同一页面而不删除我所删除的页面。 I am able to delete the record, but I'm not sure to how to forward to same tile layout back again to display all the records again. 我可以删除记录,但是不确定如何再次返回相同的图块布局以再次显示所有记录。 How to do this in my struts.xml ? 如何在我的struts.xml中执行此操作? Any pointers are appreciated. 任何指针表示赞赏。

I did a little research and looks like there is no way to forward tiles. 我做了一点研究,似乎没有办法转发磁贴。 Instead, I used action redirect. 相反,我使用动作重定向。 Following is a snippet if it helps any one. 以下是有助于帮助任何人的摘录。

<action name="deleteSurvey" class="masonsurvey.DeleteAction">
  <result name="deleteSuccess" type="redirectAction">
    ListSurvey
  </result>
</action>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM