Hi,
    If the applet does not have the codebase specified in the dynamic page,
then the codebase directory would be - like you said from where it was
loaded - i.e http;//urserver/servlet/. If you want the applet to have a the
codebase of where it resides, then specify the same in the codebase param in
the dynamically generated page.

Raaj.

----- Original Message -----
From: Nicholas Whitehead <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 1999 6:14 PM
Subject: CODEBASE ?


> 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
>
>
> =====
> --
> Nicholas Whitehead
> Marketwide Software & Consulting Inc.
> [EMAIL PROTECTED]
> Home: 973 377 9335
> Current Office: 212 559 9314
> __________________________________________________
> Do You Yahoo!?
> Thousands of Stores.  Millions of Products.  All in one place.
> Yahoo! Shopping: http://shopping.yahoo.com
>
>
___________________________________________________________________________
> 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
>

___________________________________________________________________________
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