-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
At 11:20 PM 09/03/1999 -0500, Felix Guerrero wrote:
>
>I am running Apache 1.3.3 and Jserv 1.0 (JSDK 2.0) on a window 98
>machine.I have this statement in my servlet:
>
> Enumeration names =
>getServletConfig().getServletContext().getServletNames();
> while(names.hasMoreElements()){
> String temp = (String)names.nextElement();
> out.println(temp);
> }
>
>However, I do not get any information back. According to the
>documentation it should return, at least, the name of the servlet that
>is making the request. Any idea?
The JSDK 2.1 documentation says:
getServletNames()
Deprecated. As of Java Servlet API 2.1, with no
replacement.
This method was originally defined to return an Enumeration of
all the servlet names known to this context. In this version, this
method always returns an empty Enumeration and remains only
to preserve binary compatibility. This method will be permanently
removed in a future version of the Java Servlet API.
So maybe this is also the case in JSDK2.0.
Travis Low - [EMAIL PROTECTED]
MindQ Publishing 11490 Commerce Park Drive #400 Reston VA 20191-1532 USA
http://www.mindq.com
+1 703 262 6616 (direct)
+1 703 716 0237 (fax)
"Is your belly full of bats?" -- Tiernan Low
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]