On 6/30/06, A. Lotfi <[EMAIL PROTECTED]> wrote:

Hi, we had a client/server application :
  Client :Swing application
  Server :Servlet

  The client is communicating lot with the servlet.

  Now we are moving to Struts, how can I keep the servlet in Struts so I
will use it in all my actions, I am looking in a way that at the strut up
that servlet starts.

  Thanks, your help is appreciated.


There is no problem having your own servlet along with the Struts servlet in
the same web application, as long as you map to different URL patterns.  In
order to get your servlet to start up when the app starts, use a
<load-on-startup> element inside the <servlet> element in web.xml (just like
the examples for Struts's ActionServlet demonstrate).  The number you use
inside determines the order of loading, in case that matters.

Craig


---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free.

Reply via email to