It's not a secret anymore!
The moose likes Applets and the fly likes hey Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "hey " Watch "hey " New topic


vikram kamath c

Joined: Jun 20, 2009
Posts: 15
i have an applet and i want to convert it into a servlet as in i want to do the computation on the server ..... is it possible ...... what are the steps
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873


Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

A title such as "hey" is completely useless. What would happen if all posts had such a title?

Please go back and change your post to add a more meaningful subject by clicking the button on your post.

[Asking smart questions] [About Bear] [Books by Bear]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10836

Applets run on the client in a browser where as servlets run on the server. Except the "lets" part, they have nothing in common.
As far as I can understand your question, your applet currently computes some data and you want to move this computation to the server using servlets.
You can always move the computing blocks (methods) to the server and invoke them from the applet. How to invoke them would depend on your architecture. RMI or Object I/O over HTTP are two options which immediately come to mind.
You might find this link useful
Also keep in mind that "applets can only dial home", meaning they can only communicate back to the server from which they originated.

I see Bear has already informed you about changing the post title. It is expected that you do so before posting again.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: hey
It's not a secret anymore!