Struts Plug-in or a Servlet 2.3 ContextListener (
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets4.html )
The ContextListener is initialised/destroyed when the context starts up
and shuts down.
CRANFORD, CHRIS wrote:
I want to have a particular XML file read from my struts application a
Thanks to everyone for your quick input. This makes perfect since! Thanks
a bunch for the guidance!
Chris
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, October 29, 2004 2:01 PM
To: [EMAIL PROTECTED]
Subject: Re: WebApp Startup
You'll pro
You'll probably want to write a Struts plug-in. There's not much to it... Add an
entry to your struts-config.xml file, something like so:
And then write a class along these lines:
package com.company.app.plugins;
public class AppInit implements PlugIn {
public void init(ActionServlet servle
Take a look at the plugin interface. You can implement the interface
and then configure it in the struts-config.xml file. In the past, this
is how I've done what you're looking to do.
Ed
CRANFORD, CHRIS wrote:
I want to have a particular XML file read from my struts application at
startup and
I want to have a particular XML file read from my struts application at
startup and be cached so that it does not have to be read from disk each
time my menu permissions adapter needs to determine access information.
How would I go about coding something like this?
___
5 matches
Mail list logo