Stripes 1.5 - 有什么办法可以向系统询问所有 ActionBeans 的列表吗? [英] Stripes 1.5 - any way to ask the system for a list of all ActionBeans?

查看:18
本文介绍了Stripes 1.5 - 有什么办法可以向系统询问所有 ActionBeans 的列表吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个应用程序,其中我的默认网页为index.jsp",其中包含一系列 <stripes:link...> 标签,链接到我的各种 actionBeans(到他们的默认处理程序).

I'm building an application where I have my default webpage as 'index.jsp' which consists of a list of <stripes:link...> tags, to link out to my various actionBeans (to their defaulthandlers).

随着我的应用程序的发展和收集更多的 actionBeans,我将返回并添加一个新的链接到它们:有没有办法自动化这个 - 考虑到条纹框架(我相信)在加载时遍历所有的 actionBeansup - 有没有办法向框架询问这些信息?

As my application evolves and gathers more actionBeans I'm going back and adding in a new link to them : is there a way to automate this - considering that the stripes framework (I believe) iterates through all the actionBeans when it loads up - is there a way to ask the framework for this information ?

推荐答案

ActionResolver 接口有几种可以使用的方法,包括 getActionBeanClasses()

StripesFilter.getConfiguration() 允许您以静态方式访问配置对象(以及ActionResolver).

方法如下:

StripesFilter.getConfiguration().getActionResolver().getActionBeanClasses()

这篇关于Stripes 1.5 - 有什么办法可以向系统询问所有 ActionBeans 的列表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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