|
-
October 12th, 1999, 12:33 AM
#1
Using ServletContext in JWS
ServletContext sc = getServletContext();
Servlet serv = sc.getServlet("testServlet");
A servlet contains this code and uses the ServletContext interface to find testServlet. Using JSDK, I could simply put both servlets in the same subdirectory and testServlet will be found. On JWS, puting testServlet in the same subdirectory as the main servlet in d:\jws\servlets, getServlet will return a NULL ie. testServlet was not found. Obviously it's not looking at the same subdirectory where the main servlet is. Where do I place testServlet? Where is the setting for this?
Could someone help?
thanks
Dino
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|