File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes CODEBASE Tag  Stuff Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "CODEBASE Tag  Stuff" Watch "CODEBASE Tag  Stuff" New topic
Author

CODEBASE Tag Stuff

Girish Solanke
Greenhorn

Joined: Mar 03, 2006
Posts: 13
Hi All,

I am trying to call Applet from servlet,
I had my "applet.class" which is created in one folder, say d:\project\classes
& my root folder to run web-server is different say d:\root\web_server

My proble is that every time when I compile my Project applet class file created at d:\project\classes
&
I have to manually put applet.class at d:\root\web_server to run that applet,

Please suggest me hoe define CODEBASE for this scenario.


Thanks & Regards
Girish
Sunil Kumar Gupta
Ranch Hand

Joined: Aug 26, 2005
Posts: 824
Why dont you put your compiled file directly to d:\root\web_server at compile time with javac options


Lack of will power has caused more failure than lack of intelligence or ability.
My Blog | Red5 Resources | Technology Update | Daily Technology Tips
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41823
    
  63
Hello "Girish S"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, can you describe a bit more of your architecture? A servlet can't call an applet in the general case (a servlet runs on the server, while an applet runs on the client). So unless this is a special case (like everything running on your local machine), it may be more complicated than setting the codebase attribute.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CODEBASE Tag Stuff