ITeye博客

ibugs reading: struts2 in action —— 现代web框架

i_bugs · 2013-01-16 21:12 · struts2 · 互联网 · Markdown

  1. 基本知识 所谓超文本,用超链接的方法将各种不同空间的文字信息组织在一起的网状文本; 超文本作用,一种页面范式,来显示文本与文本之间相关的内容(就是带有超链接的文本,以及一些注释表明文字的格式等); 超文本格式,超文本标记语言(Hyper Text Markup Language,HTML)及富文本格式(Rich Text Form,RTF);

  2. http协议 概念:Hyper Text Transfer Protocol,超文本传输协议; 目的:在于支持超文本的传输,更加广义一些就是支持资源的传输;

无状态表现:协议对于事物处理没有记忆能力,请求之间没有相关性; 无状态原因:静态网页,根据URL(对应唯一的超文本资源),请求返回相同的超文本;减少服务器开销; 无状态麻烦:动态网页要求客户体验,业务请求具有连续性,导致每次连接传送的数据量增大; 无状态助手:客户端cookie(记录用户名密码、定向广告、定制站点),服务器session(保存用户特有的信息);

基于文本麻烦:文本和强类型之间的转换;

  1. Servlet Servlets are the Java platform technology of choice for extending and enhancing Web servers. Servlets provide a component-based, platform-independent method for building Web-based applications, without the performance limitations of CGI(Common Gateway Interface) programs. And unlike proprietary server extension mechanisms(such as the Netscape Server API or Apache modules), servlets are server-and platform-independent. This leaves you free to select a "best of breed" strategy for your servers, platforms, and tools

  2. web日常应用必须解决问题 请求参数绑定和校验Servlet API 并没有提供,程序员手动代码处理费时费力容易出错 请求业务逻辑,工作流模式包含大量相同的逻辑 国际化,使得网页用户体验更好

  3. 框架 目的:更快更好构建应用 标准:结构化层度 手段:针对某一特定领域具体业务流程或任务进行抽象

待续……

References

  1. http://baike.baidu.com/view/156868.htm 超文本
  2. http://www.oracle.com/technetwork/java/javaee/servlet/index.html Java Servlet Technology Overview

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。