How to display all available Struts2 actions?(如何显示所有可用的 Struts2 动作?)
问题描述
我经常被要求解决 struts.xml 配置错误.现在,在更新到更高版本的 Struts2 之后,我自己遇到了这样的不匹配.导致如下错误:
I'm quite frequently asked to solve struts.xml configuration errors. Now, after updating to a later version of Struts2 I myself run into such a mismatch. Resulting in the following error:
No result defined for action com.opensource.project.ResourceAction and result missing
嗯,我猜是可以解决的.但是,有没有一种聪明的方法来 html 打印所有可用的 URL 路径?
Well, solvable I guess. However, is there a smart way to html-print all available URL paths?
感谢这个社区的猜测
推荐答案
你可以用 配置浏览器插件.检查参考文档.该插件的功能之一是
You could do it with the config-browser plugin. Check the reference docs. One of the features of that plugin is
显示所有可访问的操作 URL
Shows all accessible action URLs
这篇关于如何显示所有可用的 Struts2 动作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何显示所有可用的 Struts2 动作?


基础教程推荐
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- 从 python 访问 JVM 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 大摇大摆的枚举 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01