File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Applets
Bookmark "hey " Watch "hey " New topic
Author

hey

vikram kamath c
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61190
    
  66

"hey"?

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10355
    
    8

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
http://faq.javaranch.com/java/AppletsFaq#servlet
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: http://aspose.com/file-tools
 
subject: hey