Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CODEBASE Tag Stuff

 
Girish Solanke
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why dont you put your compiled file directly to d:\root\web_server at compile time with javac options
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic