• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hey

 
vikram kamath c
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64615
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic