开发者

Stripes 1.5 - any way to ask the system for a list of all ActionBeans?

开发者 https://www.devze.com 2023-02-02 08:16 出处:网络
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)

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).

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 fram开发者_如何转开发ework (I believe) iterates through all the actionBeans when it loads up - is there a way to ask the framework for this information ?


The ActionResolver interface has several methods you could use, including getActionBeanClasses()

StripesFilter.getConfiguration() lets you access the configuration object (and hence the ActionResolver) in a static way.

Here's how to do it:

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

精彩评论

暂无评论...
验证码 换一张
取 消