This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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?
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.