Fitzwilliam的专栏

Losers always whine about their best; Winners go home and fuck the prom queen.

[读书笔记]Struts学习

The terms Model 1 and Model 2 originated in the JSP 0.92 specification. The primary characteristics of Model 1 are

  • HTTP requests are posted directly to .jsp files.

  • The logic for directing program flow, for accessing databases and remote systems, and for building user displays are all embedded directly in JSP files.

The primary characteristics of Model 2 are

  • HTTP requests are posted to Java servlets.

  • The logic for directing program flow (Controllers) and for accessing databases and remote systems (Models) are implemented in Java servlets and classes. All user displays (Views) are built using JSP files.

Struts implements the MVC design pattern and is based on Model 2. Struts implements MVC using

  • Model components that provide a programming model of back-end databases and remote systems and services

  • View components that use JSP and Struts custom tags to build pages for user presentation

  • Controller components that implement the business logic that defines the program flow

 

Struts is a "Web Application Framework" that helps you go further faster when developing applications for which the client is a browser. It enables you to build better applications by letting you take advantage of best practices put together by some of the best programmers in the world.

A framework is a collection of software and methods used to speed application development. Web application structure and format are formally governed by the Java Servlet and J2EE specifications.

The Struts framework is based on a Model-View-Controller architecture. The Model provides an internal representation of the data. The View displays data without incorporating significant business logic. The Controller determines what processing to perform and what steps to take next.

The Struts tag libraries are used to build Struts Views. The libraries' JSP custom tags provide a high level of functionality while making the Views more readable and easier to maintain.

 

Struts是一种网络应用框架,它可以把帮助你更加快速的开发出基于浏览器的网络应用程序.Struts使你可以利用一些世界上最优秀的程序员从实践经验中总结出来的方法来建造更好的应用程序.

一个框架是一些用于快速开发应用程序的软件和方法的集合.网络应用架构和形式是由Java ServletJ2EE规范规定的.

Struts是基于MVC架构.模型层(Model)提供了对于数据的内部处理;试图层(View)用于显示数据,但是并不含有重要的业务逻辑;控制层(Contrller)决定了进行什么样的处理以及以后的处理过程.

Struts标签库用于构建Struts的视图.标签库的JSP定制标签提供了更加高级的功呢功能,而且可以是视图层更加易读和易于维护.

阅读更多
个人分类: 书摘
上一篇JNDI (The Java Naming and Directory Interface)基本概念
下一篇技术人员的人文精神
想对作者说点什么? 我来说一句

Struts读书笔记

2009年05月21日 425KB 下载

photoshop基础 读书笔记

xx

onlyForCloud onlyForCloud

2015-06-08 11:22:51

阅读数:345

没有更多推荐了,返回首页

关闭
关闭