Look at the code for ActionServlet.getRequestProcessor. It's a protected method, but the process it uses is pretty straightforward. To get a handle to an ActionServlet, use Action.getServlet. To get a handle to a ModuleConfig that you'll need to do something like ActionServlet.getRequestProcessor, use ActionConfig.getModuleConfig (ActionMapping is a subclass of ActionConfig).

Jacob Hookom wrote:
Hi,

I would like to write a CompositeAction class that would be configurable via
the struts config. In it, I would like to use the Visitor Pattern in
processing all child actions. From looking through the source, I was
wondering if there was a way to get access to the RequestProcessor object
either through the PlugIn interface, or from within an Action?


Thanks!
Jacob Hookom

-- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/>


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



Reply via email to