When I access the servlet directly (not through a JSP), the servlet reads
the init parameter just fine, but if I try to access the servlet through a
JSP, the init parameter is null.
Here is the code I use to read the servlet parameter (incidentally, I
basically copied the way the SnoopServlet example did it):
public void init() {
String configFilePath = getInitParameter("configfilepath");
//other code here
}
here is my web.xml:
<web-app>
<servlet>
<servlet-name>CaapControlServlet</servlet-name>
<servlet-class>com.center7.em.apps.apo.src.CaapControlServlet</servlet-class
>
<init-param>
<param-name>configfilepath</param-name>
<param-value>d:\apps\jakarta-tomcat\webapps\apo\web-inf\classes\APOFrontend.
config</param-value>
</init-param>
</servlet>
</web-app>
Can anyone tell me why this is?
Thank you,
--Kyle Tippetts
--Center7
[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html