aspose file tools*
The moose likes Servlets and the fly likes Problem loading applets in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem loading applets in servlet" Watch "Problem loading applets in servlet" New topic
Author

Problem loading applets in servlet

sekar bala
Greenhorn

Joined: Oct 06, 2010
Posts: 27
Hi all


I wrote an applet and i want to load it in servlet.But it is not happening can anybody help me.I pasted the source code below.

Applet Code


Servlet Code:

Reply fast..

Regards
Sekar Bala
Malatesh Karabisti
Ranch Hand

Joined: Jul 28, 2010
Posts: 153

what exactly the error you seeing ?
sekar bala
Greenhorn

Joined: Oct 06, 2010
Posts: 27
No Error..Applet is not loading..what could be the problem
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Why do you try to call your Applet code from your Servlet? Why does your Applet not have an init() method?

Are you aware that Servlets run on the server and Applets run in the client browser? If you are looking to have a n Applet tell you the version of Java the client browser is using you'll need to write an Applet that send this data as a request to the Servlet. Also, are you aware that the Object tag can be used to specify the Java version?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
sekar bala
Greenhorn

Joined: Oct 06, 2010
Posts: 27
I want to check the java version in client side when the request comes.Thats why i want to load it from servlet.Is init() method is compulsory for applet programming.But when i run the applet alone it is working.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


Thats why i want to load it from servlet

All that would achieve (if it were possible) is test the Java version on the server, not the client.

How do you "run" the applet? See this.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem loading applets in servlet