is it posible to display all the loaded mappings and configs within Struts2 while running?

137 Views Asked by At

I often get confused with various cases of the incorrect config for Struts2. Such as after modified packages or classes.

The bootstrap log of Struts2 shows hardly any detail on loaded mappings.

I want to list all the loaded configures at running time. How to do it ?

2

There are 2 best solutions below

0
rees On BEST ANSWER

Use the Config Browser.

A nice example is here.

Just be sure to use the same version as your other Struts2 dependencies.

0
user497087 On

Alternatively you could add the config-browser plugin to your development environment.I use this all the time - it makes seeing what Struts thinks is configured an absolute breeze.