Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.
The following page has been changed by GeorgeDinwiddie: http://wiki.apache.org/struts/StrutsInitialization The comment on the change is: escape class names ------------------------------------------------------------------------------ from whereever can be stored in application state for use by the rest of your application. - Your plug-in class should extend org.apache.struts.action.PlugIn. Once you + Your plug-in class should extend `org.apache.struts.action.PlugIn`. Once you - finish implementing the PlugIn interface, you would create an entry in your + finish implementing the !PlugIn interface, you would create an entry in your - strut-config.xml to reference the PlugIn that you just created. + strut-config.xml to reference the !PlugIn that you just created. You can find more information about it here: http://jakarta.apache.org/struts/userGuide/configuration.html#plugin_config - You also might want to look at the JavaDocs for the PlugIn interface and read + You also might want to look at the !JavaDocs for the !PlugIn interface and read - up on that as well. }}} + up on that as well. ---- = Define statics = Define statics (maybe even private with access methods) in your extended servlet. @@ -85, +85 @@ <listener-class>my.app.MyContextListener</listener-class> </listener> }}} - Then, MyContextListener.java might be: + Then, !MyContextListener.java might be: {{{ package my.app; import javax.servlet.ServletContextEvent; @@ -102, +102 @@ } } }}} - Then, in your code you can call MyContextListener.getValue("someKey"); to retrieve the value. Naturally, you probably want to do something more complex than this like reading from a config file and creating some "real" configuration holder object, but you get the point :) + Then, in your code you can call `MyContextListener.getValue("someKey");` to retrieve the value. Naturally, you probably want to do something more complex than this like reading from a config file and creating some "real" configuration holder object, but you get the point :) Remember, you can do whatever you want here... it can be as simple or as complex as you like! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]