struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <aasm...@wisc.edu>
Subject RE: list of modules
Date Tue, 20 Apr 2004 19:35:08 GMT
To just get a list you could do something like this, I guess:

In an Action class put the getServlet, else omit if in the servlet. 

Enumeration enum =
getServlet().getServletConfig().getInitParameterNames()

Then you could look for the ones that start with "config/"

This doesn't tell you much.

Aaron Smuts

> -----Original Message-----
> From: Daniel Lipofsky [mailto:daniel.lipofsky@bricsnet.com]
> Sent: Tuesday, April 20, 2004 1:41 PM
> To: Struts Users Mailing List
> Subject: list of modules
> 
> I have one web module with many struts modules.
> I am wondering if there is a way to get a hold
> of the list of modules?  I have 1 shared action
> servlet and I want to get the list of modules in
> the init() method.
> Thanks,
> Dan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message