> The problem is that if I use a relative URL such as <applet
> code=Test.class>,
> the class cannot be found and if I use <applet
> code=http://www.aaa.com/library/Test.class> the security restrictions
apply
> and it doesn't work either.

Use codebase instead:

<applet code=Test.class codebase=http://www.aaa.com/library/>

Terje Hermanseter
PMSC, Oslo





Pol Millan <[EMAIL PROTECTED]> on 15.02.2000 11:11:48

Please respond to "A mailing list for discussion about Sun Microsystem's
      Java              Servlet API Technology."
      <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Terje Hermanseter/PMSN)
Subject:  Applets within Servlets




Hi guys,

I'm trying to insert an applet into the code a servlet delivers to the
brower.
The problem is that if I use a relative URL such as <applet
code=Test.class>,
the class cannot be found and if I use <applet
code=http://www.aaa.com/library/Test.class> the security restrictions apply
and it doesn't work either.

Any idea how I can make this work out?

Many thanks to everyone.

Pol Millan

___________________________________________________________________________
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