You usually want to do this whilst initializing you app. In this case, simple and 
pretty much standard would be to write a servlet (generic if you don't want to be tied 
to http) as part of your web-app. All you do is implement its init() method and 
declare it in your web.xml. Only once init is done for all your servlets, can the 
users hit your pages.
Emmanuel



-----Original Message-----
From: Damm, Gary [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 6:35 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: first action


Sounds more like a PlugIn.  Here are the API docs:
http://jakarta.apache.org/struts/api/org/apache/struts/action/PlugIn.htm
l

You just implement this interface, configure it in your config.xml file
and you're up and running.

Gary

-----Original Message-----
From: Yan Zhu [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 09, 2003 6:26 PM
To: Struts Users Mailing List
Subject: first action



hey guys,

    what is the best way to implement a startup action that always will
be executed first before any jsp is hit?

    thanks

yan


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


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


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

Reply via email to