You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Nelson, Laird" <La...@FMR.COM> on 2002/06/25 14:20:03 UTC

Making 1.0.2 behave like 1.1

First off, let me say that I got Craig's warning loud and clear: don't try
to make Struts 1.0.2 support multiple sub-applications.  Unfortunately, I'm
kind of between a rock and a hard place and have to figure something out
fast to tide us over until we move to 1.1.

We're somewhat lucky in that we aren't using any of the custom tags, which
seem to be the main thing that prevents 1.0.2 from having two ActionServlets
in the same web application.

>From combing through the source code, I can't see a reason why, if we're
just using the server-side stuff, we shouldn't be able to have more than one
ActionServlet per application (looks like only the custom tags make use of
ServletContext-stored ActionMappings and the like).  Is this true?

Cheers,
Laird

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Making 1.0.2 behave like 1.1

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Tue, 25 Jun 2002, Nelson, Laird wrote:

> Date: Tue, 25 Jun 2002 08:20:03 -0400
> From: "Nelson, Laird" <La...@FMR.COM>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: "'struts-user@jakarta.apache.org'" <st...@jakarta.apache.org>
> Subject: Making 1.0.2 behave like 1.1
>
> First off, let me say that I got Craig's warning loud and clear: don't try
> to make Struts 1.0.2 support multiple sub-applications.  Unfortunately, I'm
> kind of between a rock and a hard place and have to figure something out
> fast to tide us over until we move to 1.1.
>
> We're somewhat lucky in that we aren't using any of the custom tags, which
> seem to be the main thing that prevents 1.0.2 from having two ActionServlets
> in the same web application.
>
> >From combing through the source code, I can't see a reason why, if we're
> just using the server-side stuff, we shouldn't be able to have more than one
> ActionServlet per application (looks like only the custom tags make use of
> ServletContext-stored ActionMappings and the like).  Is this true?

I suppose it is not possible to convince your PHBs (pointy haired bosses,
for non-Dilbert fans) that customizing your own copy of Struts 1.0.2 to
deal with this would leave you a *less* supported Struts than 1.1, even
though it is only a "beta"?  :-)

What you'd need to do is examine every single use of servlet context
attributes in every single class.  All of them make the assumption that
there is only one controller, and (indirectly) that there is only one copy
of all of the various objects stored there.  The nasty part is going to be
the interactions between classes, which aren't going to be as obvious.

If I were required to use Struts 1.0.x in a multi-controller environment,
I'd sure do it with multiple webapps and use other mechanisms to share
information between the apps ...

>
> Cheers,
> Laird
>

Craig


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>