小程序与 Servlet [英] Applet v/s Servlet

查看:33
本文介绍了小程序与 Servlet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JAVA中Applet和Servlet的区别

Whats the difference between Applet and Servlet in JAVA

推荐答案

Applet 运行在客户端,servlet 运行在服务器上.就这么简单.

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

更具体地说,该小程序被下载到客户端,并在浏览器内的 JRE 中执行,并且可以在小程序框架内显示它想要显示的任何内容.servlet 而是在服务器上运行,并且(通常)生成一个 HTML 页面并显示在您的浏览器中.

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.

这篇关于小程序与 Servlet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆