struts2 - 让 struts Action 什么也不做

标签 struts2 struts-config

有没有办法让 struts Action 什么都不做?执行完我的操作后,我不想做任何事情。我继承的项目中的每个 Action (其中 794 个)都是 redirectAction。但我不想重定向。我只想保持在同一页面上。

我该怎么做才能保持在同一页面上?我想要像

<result name="success" type="doNothing"></result>

我可以做些什么来获得这种行为?甚至伪造它?

最佳答案

返回ActionSupport.NONE

用例是什么?什么操作不会返回任何东西

关于struts2 - 让 struts Action 什么也不做,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13519777/

相关文章:

java - ExtJS 成功操作未被调用

java - 无法在我的系统中配置 Struts

struts2 - 禁用 Struts 操作调用

jsp - Struts 2 嵌套迭代器

java - Struts2 将列表转换为整数或 double 不起作用

java - org.xml.sax.SAXParseException : Document is invalid: no grammar found.

java - 当在 UI 中留空时,Struts 表单长字段不会显示为 null

struts2 - struts 2包是否必须扩展 "struts-default"?

java - struts2 让我发疯

struts2 - ActionContextCleanUp 已弃用 Struts2 原型(prototype)