Hi Yao,

in the web.xml in the conf-path of your Tomcat you may have an entry like:
   <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

This is the order for pages that tomcat searches for, when starting the
application. Just write a simple index.jsp that has a dispatcher forwarding
to your servlet:

<%
        RequestDispatcher requestDispatcher;
        requestDispatcher = application.getRequestDispatcher(<url-mapping>);
        requestDispatcher.forward(request, response);
%>

or an html with some Javascript inside:
<script language="javascript">
document.location.href="<url-mapping>"
</script>

Greetings from Hamburg/Germany
Seppo

-----Ursprüngliche Nachricht-----
Von: Yao Xu [mailto:[EMAIL PROTECTED]] 
Gesendet: Donnerstag, 5. Dezember 2002 03:50
An: [EMAIL PROTECTED]
Betreff: load-on-startup for AxisServlet


Hi, 

Once I have published my services successfully into
Axis, I would like to have the service be loaded while
the Axis server is started. 

I am hoping by adding '<load-on-startup/>' in
following file for AxisServlet would load those
services: 
$somedir/axis/tomcat/webapps/axis/WEB-INF/web.xml

<web-app>
  <display-name>Apache-Axis</display-name>
  <servlet>
    <servlet-name>AxisServlet</servlet-name>
    <display-name>Apache-Axis Servlet</display-name>
    <servlet-class>
        org.apache.axis.transport.http.AxisServlet
    </servlet-class>
    <load-on-startup/>
  </servlet>


However, after I restarted tomcat (with Axsis
installed), there seems no effect. 

Please advise what would be an appropriate way to do
this. 

Thanks 


Yao

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Reply via email to