开发者

Applet v/s Servlet

Whats the difference betwee开发者_Python百科n Applet and Servlet in JAVA


Applet runs on the client, servlet runs on the server. It's as simple as that.

More specifically, that applet is downloaded to the client, and executes in a JRE inside the browser, and can display whatever it wants to display within the applet frame. The servlet instead runs on the server and (generally) produces a HTML page which is displayed in your browser.


A Java Applet is a Java class which is run on the client's JVM (via a Browser Plugin).

A Java Servlet is run on the server-side in a Servlet container, like Apache Tomcat and the client recieves the results in the form of plain old HTML.

The key difference is that where as one runs on the client side, the other on the Server side.


applet is the Desktop application and the Servlet is the web Application

Applet is run on the Clients machine and the Servlet is run the Server Machine And produce the html page on the client browser with the help of the Request And Response Parameter in the Java.servlet.*; Package

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜