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 Hashmap 中的值求和 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
