Hugo,
Put the class file or directory structure containing the class file in the
directory where you store your html document that refers to it.

For example:
If your web application is in the myapp directory and your ht docs are in
the myapp/htdocs directory, then put your classes in the htdocs
directory.  If the classes are in a package, then you'd put the directory
in htdocs.

Regards,

Richard


At 04:30 PM 9/27/01 +0100, you wrote:
>Hi, thanks for your help in advance. However i think i've discovered my
>problem. But i don't hava a solution. Maybe you can help me... My html file
>code is the following:
>
>  <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
>     width="800" height="600" align="baseline"
>
>codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Vers
>ion=1,3,0,0">
>     <PARAM NAME="code" VALUE="sged.presentation.Sprint_Aplicacao_Applet">
>    <PARAM NAME="codebase"
>VALUE="file://Phc/C/leas/myProjects/Sprint2/output/store/web/expand/Sprint2/
>WEB-INF/classes">
>     <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
>
>     <PARAM NAME="scriptable" VALUE="true">
>         No JDK 1.2 support for APPLET!!
>         </OBJECT>
>
>The problem is, that the code base of the applet is
>file://Phc/as_the_code_above .So you try to connect to a servlet as
>http://phc:8000/servlet it's obviuos different from the location where the
>applet was downloaded from... so it gives me an
>java.security.AcessControlException.
>
>I'm using an application server, and i dont't know to make my applet class
>available so that i can call it through http://phc:8000/something so that
>the codebase of the applet can be http://phc:8000 and then (i think) i will
>have no problem to make UrlConnections from another computer because the
>applet will not "get out from her sandbox"
>
>the only thing i can acess through http://phc:8000 is the servlet's which
>are mapped in the web.xml  Do you have any ideia??  Have you ever made
>applet to servlet? The servlet.class and applet.class are in the same
>directory /WEB-INF/classes/sged/presentation
>
>Thanks for your help....
>
>

___________________________________________________________________________
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