http://struts.apache.org/userGuide/building_controller.html#plugin_classes

Just set your application scope attributes in the init method.

An example of a custom PlugIn that is often used by Struts developers is the Validator PlugIn, so you'll also learn a little about the mechanism if you read the docs related to using the Validator.

Erik



David Johnson wrote:

Ahhh a little more information on using a Struts plugin? I'm such a
noobie I've never done this.. anywhere you can point me for examples?

UGH!

Sorry for the simpleton question


On Mon, 14 Feb 2005 13:26:12 -0500, Erik Weber <[EMAIL PROTECTED]> wrote:


I use the same strategy often. Another option (besides a
ServletContextListener) for loading your application scope attributes is
a Struts PlugIn.

Erik


Wendy Smoak wrote:



From: "David Johnson" <[EMAIL PROTECTED]>




I have a need in an app I'm working on to cache data that is valid and
shared across users, like standard country codes, region codes,
industry codes... stuff like that.

What's the best way to do that with my struts 1.2 application? Is
there something built in that I'm not aware of that I can leverage or
any best practices you guys can point me toward?




I use a ServletContextListener that puts a bunch of Maps and other resources
in application scope.  (Then I use a HttpSessionListener to set up
user-specific things.)





---------------------------------------------------------------------
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