I definitely agree that there are some issues surrounding modularization in
Struts.  I think that is to be expected because Struts 1.1 strove very hard
to maintain backward compatibility with Struts 1.0, which did not have
modules at all.  IMHO, the conceptual issue is that there seems to be no
notion of a Struts "application" reflected in the code because all the
modules are peers with equal status.  The only difference I can tell between
the default module and the other modules is that its URLs are shorter.
Also, almost accidentally, if you happen to define the entry point of your
application to map to the default module then you can put all your plugins
(except the validator) here only instead of re-specifying them in every
module.

Or did you mean I'm not modularizing my app well?  Maybe so, but I still
think a notion of a Struts "application" could be beneficial.

Matt
----- Original Message ----- 
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "Struts Developers List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 06, 2003 12:18 PM
Subject: Re: Resource Bundle Prototyping


> At 12:01 -0400 8/6/03, Sgarlata Matt wrote:
> >Good point!  I ran originally ran into the resource bundle problem a long
> >time ago, and forgot that there are other application-wide settings that
> >would be nice to inherit from module to module.
> >
> >1) Declarative Exception Handling (<global-exceptions>) - in my
application,
> >each module treats exceptions the same way, so we end up copying the
> ><global-exceptions> portion of the struts-config file from module to
module.
> >2) Global Forwards - same deal with global forwards.  We have a "debug"
> >forward that we use when debugging Action classes that gets copied to
every
> >module(System.out.println isn't practical on some application servers,
and
> >we haven't implemented log4j yet, so "debug" isn't a great example, but
I'm
> >sure someone can think of a better one)
>
> Maybe this is just pointing out a need to better understand the
> relationships between modules?  Although they work for many of us in
> a simple fashion, problems like yours (among others) seem to point
> out ways in which the modularization is not completely worked out yet.
>
> Just a thought.  I'm in between major Struts projects at the moment,
> so I don't have anything fresh in my own head.
>
> Joe
>
> -- 
> --
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "If nature worked that way, the universe would crash all the time."
> --Jaron Lanier
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to