-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello struts freaks,

i would like to implement a rights management for my application. Therefore I need to retrieve a list of actions configured in struts.xml.
Does anyone of you have an idea how to get this information ?
I can get a list of action classes using

~        List<String> actions = new ArrayList<String>();
~        Dispatcher disp = Dispatcher.getInstance ();
~ PackageConfig actionMap = ((PackageConfig)disp.getConfigurationManager().getConfiguration().getPackageConfigs().get("<package name of actions package>")); ~ Map<String,ActionConfig> actionConfigs = actionMap.getAllActionConfigs();
~        Iterator actionIterator = actionConfigs.keySet().iterator();
~        while (actionIterator.hasNext()) {
~            String key   = (String) actionIterator.next();
~            ActionConfig config = actionConfigs.get(key);
~ String value= config.getClassName().substring(config.getClassName().lastIndexOf(".")+1);
~            actions.add((String)value);
~        }
~ return actions;

But this is not exactly what i want. What i need is the names of the actions.
Any ideas ?

thanks in advance

~  Volker


- --
- -------------------------------

Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mülheim/Ruhr

Tel. :  (+49) 208-7785675
Mobil:  (+49) 176-21056587
Mail :  [EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIF5guaEMQXBIqssERAqKuAJsHTPohbwctJd7crzUETpX7GNAcewCfcPvN
ORF3KDd2juDK2i5B40gpA9w=
=WJ/y
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to