>2)How I can make a servlet run at the beginning of the web server
inited?

  <servlet>
        <servlet-name>
            servlet1
        </servlet-name>
        <servlet-class>
            servletClass
        </servlet-class>
          <load-on-startup>1<load-on-startup/>
        <servlet-name>
            servlet2
        </servlet-name>
        <servlet-class>
            servletClass
        </servlet-class>
        <load-on-startup>2<load-on-startup/>
  <servlet>

-----Original Message-----
From: ivy chen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 2:30 AM
To: [EMAIL PROTECTED]
Subject: Howto get the value of web.xml parameters?


Hi,all.

I want to set some global variables by the parameters in web.xml when
the
web server inited. so:
1)How I can get the value of web.xml parameters in jsp?
2)How I can make a servlet run at the beginning of the web server
inited?
Thanks for your answer(s).

BestRegards

Ivy

========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to