Web Hosting Talk







View Full Version : Java applets and servlets Hosting


chrisb
08-21-2002, 11:56 PM
If I get a host that offers Java servlets, will that allow me to view Java applets server-side so that I don't have to have Java on my PC?

If so, are there any good unix hosts that offer Java servlets besides Superb that aren't so expensive and don't charge extra for it?

ckpeter
08-22-2002, 12:13 AM
I think you are confusing server-side java with client-side java.

Just as you don't need php on your windows desktop to view php pages, you don't need java runtime to view jsp pages. Both php and jsp simply produces HTML pages, which you are view in the web browser.

On the other hand, just having server-side java (java servlet) won't help you if your pages use java applets. Java applets are executed on the client (desktop), and so it is un-related to servlet. You still need a java runtime if you want to view java applets.

Peter

chrisb
08-22-2002, 01:07 AM
Thanks, peter. That helps me understand it. So, can I get server-side Java applets so that I don't need a runtime engine on my machine?

ckpeter
08-22-2002, 01:07 AM
No problem. Glad to help. :)

Peter

chrisb
08-22-2002, 01:10 AM
Hehe... you posted too fast. I changed my post.

ckpeter
08-22-2002, 01:15 AM
Well, "Applets" by definitions are client-side, so you have to have a Java runtime to run it. There is no such thing as "server-side applets;" all applets are client-side. (the server-side java programs are called "servlet.")

If you think about it, it only makes sense - if you have an applet that draws some banner text, the code has to be executed on the client side in order to actually draw the text. A server side java program that continually draw the text and push it to the client is just too bandwidth-intensive and technically useless.

Peter

chrisb
08-22-2002, 01:19 AM
Thanks again. That really helped. I think you must be the Java Guru at WHT.

ckpeter
08-22-2002, 01:20 AM
Thanks. I am just a monkey. :)

Peter