【正文】
后來該框架產(chǎn)品一度被認(rèn)為是最廣泛、最流行 JAVA 的 WEB 應(yīng)用框架。 MVC 結(jié)構(gòu) 在 Struts 中,已經(jīng)由一個(gè)名為 ActionServlet 的 Servlet 充當(dāng) 控制器 (Controller)的角色,根據(jù)描述模型、視圖、控制器對應(yīng)關(guān)系的 的配置文件,轉(zhuǎn)發(fā)視圖 (View)的請求,組裝響應(yīng)數(shù)據(jù)模型( Model)。 》通過選中的某個(gè)項(xiàng)目的節(jié)點(diǎn),可以在右側(cè)的窗口中看到該項(xiàng)目包含的內(nèi)容。 》數(shù)據(jù)倉庫: 數(shù)據(jù)倉庫是 SQL Server 2020中包含的用于分析取和分析匯總數(shù)據(jù)以進(jìn)行聯(lián)機(jī)分析處理的工具。該版本主要適用于程序員在開發(fā)應(yīng)用程序時(shí),將 SQL Server 2020 作為其數(shù)據(jù)存儲區(qū)。該版本多用于大中型產(chǎn)品數(shù)據(jù)庫服務(wù)器,并且可以支持大型網(wǎng)站,企業(yè) OLTP(聯(lián)機(jī)事務(wù)處理)和大型數(shù)據(jù)倉庫系統(tǒng) OLAP(聯(lián)機(jī)分析處理)所要求的性能。s request dynamic response to the client sent the data. 三 . session object 1. What is the session: session object is a builtin objects JSP, it in the first JSP pages loaded automatically create, plete the conversation of management. From a customer to open a browser and connect to the server, to close the browser, leaving the end of this server, known as a conversation. When a customer visits a server, the server may be a few pages link between repeatedly, repeatedly refresh a page, the server should be through some kind of way to know this is the same client, which requires session object. 2. session object ID: When a customer39。 如果您使用 IE 瀏覽器訪問 Web,您會看到所有保存在您的硬盤上的 Cookie。但是與 session 不同的是,所有客戶的 application 對象都是同一個(gè),即所有客戶共享這個(gè)內(nèi)置的 application 對象。 二 .response 對象: 對客戶的請求做出動態(tài)的響應(yīng),向客戶端發(fā)送數(shù)據(jù)。從只有一個(gè)小的 Jar文件就可以運(yùn)行 Servlet/JSP,到由多臺服務(wù)器進(jìn)行集群和負(fù)載均衡,到多臺 Application 進(jìn)行事務(wù)處 理,消息處理,一臺服務(wù)器到無數(shù)臺服務(wù)器, Java 顯示了一個(gè)巨大的生命力。 Java Servlet 是JSP的技術(shù)基礎(chǔ),而且大型的 Web應(yīng)用程序的開發(fā)需要 Java Servlet 和 JSP配合才能完成。 JSP將網(wǎng)頁邏輯與網(wǎng)頁設(shè)計(jì)和顯示分離,支持可重用的基于組件的設(shè)計(jì),使基于 Web的應(yīng)用程序的開發(fā)變得迅速和容易。 用 JSP 開發(fā)的 Web 應(yīng)用是跨平臺的,即能在 Linux下運(yùn)行,也能在其他操作系統(tǒng)上運(yùn)行。目前較新的是 規(guī)范, 規(guī)范的征求意見稿也已出臺?;旧峡梢栽谒衅脚_上的任意環(huán)境中開發(fā),在任意環(huán)境中進(jìn)行系統(tǒng)部署,在任意環(huán)境中擴(kuò)展。 ( 2) Java 的運(yùn)行速度是用 class 常駐內(nèi)存來完成的,所以它在一些情況下所使用的內(nèi)存比起 用戶數(shù)量來說確實(shí)是 “最低性能價(jià)格比 ”了。當(dāng)客戶再訪問連接該服務(wù)器的其他頁面時(shí),不再分配給客戶新的 session對象,直到客戶關(guān)閉瀏覽器后,服務(wù)器端該客戶的 session 對象才取消,并且和客戶的會話對應(yīng)關(guān)系消失。 六. Cookie Cookie: Cookie 是 Web 服務(wù)器保存在用戶硬盤上的一段文本。 格式: (c) 4.讀取保存到客戶端的 Cookie,使用 request 對象的 getCookies()方法,執(zhí)行時(shí)將所有客戶端傳來的 Cookie 對象以數(shù)組的形式排列,如果要取出符合需要 的 Cookie 對象,就需要循環(huán)比較數(shù)組內(nèi)每個(gè)對象的關(guān)鍵字。 3. If the JSP in the package good Cookie object to send to the client, the use of the response addCookie () method. Format: (c) 4. Save to read the client39。 》個(gè)人版( Personal Edition) 主要適用于移動用戶,因?yàn)樗麄兘?jīng)常從網(wǎng)絡(luò)上斷開,而運(yùn)行的應(yīng)用程序卻仍然需要 SQL Server 2020 的支持。 》企業(yè)級數(shù)據(jù)庫功能: SQL Server 2020 分布式查詢可以引用來自不同數(shù)據(jù)庫的數(shù)據(jù),而且這些對于用戶來說是完全透明的;分布式數(shù)據(jù)庫將保證任何分布式數(shù)據(jù)更新時(shí)的完整性;復(fù)制可以使我們能夠維護(hù)多個(gè)數(shù)據(jù)復(fù)本,這些用戶能夠自主地進(jìn)行工作,然后再將所做的修改合并到發(fā)布數(shù)據(jù)庫; SQL Server 2020關(guān)系數(shù)據(jù)庫引擎能夠充分保護(hù)數(shù)據(jù)完整性,還可以將管理并發(fā)修改數(shù)據(jù)庫開銷到最小。 用企業(yè)管理可以完成的操作 》管理 SQL Server 服務(wù)器;建立與管理數(shù)據(jù)庫;建立與管理表、視圖、存儲過程、觸發(fā)程序、角色、規(guī)則、默認(rèn)值等數(shù)據(jù)庫對象,以及用戶定義的數(shù)據(jù)類型;備份數(shù)據(jù)庫 和事務(wù)日志、 恢復(fù)數(shù)據(jù)庫;復(fù)制數(shù)據(jù)庫;設(shè)置任務(wù)調(diào)度;設(shè)置警報(bào);提供跨服務(wù)器的拖放控制操作;管理用戶賬戶;建立 TransactSQL 命令語句以及管理和控制 SQL Mail。 if the controller receives such a request it calls the corresponding Action class which interacts with the application specific model code. The model code returns an ActionForward, a string telling the controller which output page to send to the client. Information is passed between model and view in the form of special JavaBeans. A powerful custom tag library allows it to read and write the content of these beans from the presentation layer without the need for any embedded Java code. Struts also supports i18n (internationalization), provides facilities for the validation of data submitted by web forms, and includes a template mechanism called Tiles which (for instance) allows the presentation layer to be posed from independent header, footer, and content ponents. Competing MVC frameworks Although Struts is a well documented, mature and popular framework for building front ends to Java applications, it is facing new challenges from newer light weight MVC frameworks such as Spring MVC, Stripes and Tapestry. The new XForms standards and frameworks may also be another option to building plex web Form validations with Struts in the future. The WebWork framework spun off from Apache Struts several years ago, aiming to offer enhancements and refinements while retaining the same general architecture of the original Struts framework. However, it was announced in December 2020 that Struts would remerge with WebWork. WebWork has been adopted as Apache Struts 2, which reached its first full release in February 2020. Sun recently brought out a new addition to the Java platform, called JavaServer Faces (JSF). Aside from the original framework, the Apache Struts project also offers a JSFbased framework called Shale. Other MVC frameworks that are not J2EE based include Ruby on Rails, WebObjects, Django, Catalyst, TurboGears, CakePHP, Symfony (for PHP), Zend, Achievo ATK, and CodeIgniter (for PHP). Struts4php is a version of the Struts framework for the PHP web scripting language. Girders is a port of the Struts framework in C for Microsoft .NET. === 中文 === Struts 是 Apache 軟件基金會( ASF)贊助的一個(gè)開源項(xiàng)目。 發(fā)展歷程 在 Java EE 的 Web應(yīng)用發(fā)展的初期,除了使用 Servlet 技術(shù)以外,普遍是在 JavaServer Pages (JSP)的源代碼中,采用 HTML 與 Java 代碼混合的方式進(jìn)行開發(fā)。 。在 Struts 的視圖( View) 端,除了使用標(biāo)準(zhǔn)的 JavaServer Pages( JSP)以外,還提供了大量的標(biāo)簽庫使用,同時(shí)也可以與其他表現(xiàn)層組件技術(shù)(產(chǎn)品)進(jìn)行整合,比如 Velocity