On Fri, 18 Mar 2005 04:03:31 -0800 (PST), Konstantin Priblouda <[EMAIL PROTECTED]> wrote:
That's my question :) I would like to see a possibility to plug in something like ActionFactory - but in 1.2.4 it seems to be really difficult.
It's definitely harder in 1.2.4, but it is possible -- you have to subclass RequestProcessor and override processActionCreate().
See http://www.springframework.org/docs/api/org/springframework/web/struts/DelegatingRequestProcessor.html#processActionCreate(javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse,%20org.apache.struts.action.ActionMapping) for one example. No code online, but you can get it out of CVS...
Spring produces a new Action instance for each request, where it finds one in the ActionContext with the correct name; in other cases it defers to the default implementation.
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]