• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Setting applet path in Java Servlet

 
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

The applet is running with HTML file but when am trying from Java Servlet then following error appears.


My code to call this applet is:


I tried to set path in different ways but not succeeded


Thanks & best regards
 
Farakh khan
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help
 
Farakh khan
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there anybody who can help me?

Best regards
 
Marshal
Posts: 28425
102
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why don't you start by posting the actual HTML which is generated from that?

Oh, and you could also find out for yourself whether http://127.0.0.1:7070/servlet/SecureVideo.class actually points to the place where you deployed your SecureVideo class. The applet plugin code says it doesn't.
 
Farakh khan
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:you deployed your SecureVideo class. The applet plugin code says it doesn't.



Hello,

My servlet code is generating following HTML whereas at run time it change to http://127.0.0.1:7070/servlet/SecureVideo.class:


Why this is happening?

Best regards
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you able to download the class file if you enter "http://127.0.0.1:7070/servlet/SecureVideo.class" in a browser? If not, then that's where the problem is. In other words: Where is SecureVideo.class?
 
Farakh khan
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Are you able to download the class file if you enter "http://127.0.0.1:7070/servlet/SecureVideo.class" in a browser? If not, then that's where the problem is. In other words: Where is SecureVideo.class?



Certainly I can't. what I do?

Best regards
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The first step is to answer this question:

Ulf Dittmer wrote:Where is SecureVideo.class?


Class files used by applets must be publicly accessible. Once you know where it is, you can go about fixing the APPLET tag so that the browser JVM can find it. A CODEBASE attribute might be helpful for that (see http://download.oracle.com/javase/1.4.2/docs/guide/misc/applet.html)
 
Farakh khan
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:The first step is to answer this question:

Ulf Dittmer wrote:Where is SecureVideo.class?


Class files used by applets must be publicly accessible. Once you know where it is, you can go about fixing the APPLET tag so that the browser JVM can find it. A CODEBASE attribute might be helpful for that (see http://download.oracle.com/javase/1.4.2/docs/guide/misc/applet.html)



Thanks a lot from bottom of my heart. Problem solved

Best regards
 
reply
    Bookmark Topic Watch Topic
  • New Topic