Milt Epstein wrote:

> I do realize that the JSDK API docs (at least for JSDK 2.0), as well
> as Jason Hunter's book, indicates that getServerName() is the same as
> SERVER_NAME, but that is apparently not the behavior I'm getting.
>

This hasnt changed, in either 2.1 or the 2.2 draft API docs.

I just tried with JSWDK on my Linux box, using the "snoop" JSP example.  I get
the server name used in the request when I use either of the following URLs
(with the hostname obviously being my own):

    http://www.myserver.com:8080/examples/jsp/snp/snoop.jsp

    http://localhost:8080/examples/snp/snoop.jsp

>
> I should say I'm using a pre-release version of ServletExec 2.1 as my
> servlet engine.  I haven't tried it with any other servlet engines.
>

Sounds like there might be a bug in their implementation, and/or in their
connector with NES.

Craig

___________________________________________________________________________
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

Reply via email to