Nicholas Whitehead <[EMAIL PROTECTED]> wrote on Thursday December
16, 1999 at 10:40am:
>I had a whole applet/servlet architecture set up that
>used a static HTML file served from gthe web server to
>load the applet into the browser.
>
>For a number of reasons (parameters) I substituted the
>static page for a servlet generated page and lo and
>behold, the Java Plugin cannot find the applet's JAR
>file. I was using a CODEBASE of "." in both cases,
>since the JAR file resided in the default HTML
>directory of the web server.
>
>I peer closer at the documentation for applet tags and
>it says:
>
>"By default, a browser looks for an applet's class and
>archive files in the same directory as the HTML file
>that has the <APPLET> tag. "
>
>So I got around the problem by using an absolute URL
>for the CODEBASE ie. http://myserver:80/
>
>My question is, when a page is dynamically generated
>by a servlet, precisely what directory is that page
>considered to have come from ? I tried
>http://myserver/servlet. No dice.
>
>Thanks.
>
>Nicholas
>
Have you tried specifying codebase as "/"? (ie. the html document
root directory).

"/servlet" and "/cgi-bin" are two standard aliases to invoke a
special handler; they aren't directories.

+--------------------------------------------------------------------------+
| The coolest site for free home pages, email, chat, e-cards, movie info.. |
|               http://www.goplay.com - it's time to Go Play!              |
+--------------------------------------------------------------------------+

___________________________________________________________________________
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