1)Is it possible to have Multiple Controllers in a single web-applicaion?
(both these controllers are extended from the ActionServlet)

Struts was not designed to support two ActionServlets in a single webapp. There are many places where resources would be initialized by the first webapp and then clobbered by the second. Actually, given the uncertainty of synchronization, you'd probably get a mish-mash. But Struts is not careful about how it uses the Application Context because it assumes that there is only one ActionServlet.


As we've been talking about new designs for Struts in the future, I have been thinking that it would be nice to have Struts put only one object in the ApplicationContext: a "Struts" object which then uses its own internal references to manage "application-scoped" values so that instead they would be scoped to the instance that initialized them. There might still be some issues with things like the JSP tags, and this would certainly break backwards compatibility, so there's not much likelihood of this being implemented any time soon. I just prefer the model where less objects are put into the various scopes, and those objects are given more responsibility to manage references, instead of relying on well-known attribute names.

Perhaps if you discuss some of the goals you are trying to achieve using multiple controllers, members of the list could help you come up with alternate solutions.

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]



Reply via email to