struts——mvc 的一種開放源碼實(shí)現(xiàn)--------外文翻譯.doc
約21頁(yè)DOC格式手機(jī)打開展開
struts——mvc 的一種開放源碼實(shí)現(xiàn)--------外文翻譯,this article introduces struts, a model-view-controller implementation that uses servlets and javaserver pages (jsp) technology. struts can help you control cha...
內(nèi)容介紹
此文檔由會(huì)員 wanli1988go 發(fā)布This article introduces Struts, a Model-View-Controller implementation that uses servlets and JavaServer Pages (JSP) technology. Struts can help you control change in your Web project and promote specialization. Even if you never implement a system with Struts, you may get some ideas for your future servlets and JSP page implementation.
Introduction
Kids in grade school put HTML pages on the Internet. However, there is a monumental difference between a grade school page and a professionally developed Web site. The page designer (or HTML developer) must understand colors, the customer, product flow, page layout, browser compatibility, image creation, JavaScript, and more. Putting a great looking site together takes a lot of work, and most Java developers are more interested in creating a great looking object interface than a user interface. JavaServer Pages (JSP) technology provides the glue between the page designer and the Java developer.
If you have worked on a large-scale Web application, you understand the term change. Model-View-Controller (MVC) is a design pattern put together to help control change. MVC decouples interface from business logic and data. Struts is an MVC implementation that uses Servlets 2.2 and JSP 1.1 tags, from the J2EE specifications, as part of the implementation. You may never implement a system with Struts, but looking at Struts may give you some ideas on your future Servlets and JSP implementations.
本文介紹 Struts,它是使用 servlet 和 JavaServer Pages 技術(shù)的一種 Model-View-Controller 實(shí)現(xiàn)。Struts 可幫助您控制 Web 項(xiàng)目中的變化并提高專業(yè)化水平。盡管您可能永遠(yuǎn)不會(huì)用 Struts 實(shí)現(xiàn)一個(gè)系統(tǒng),但您可以將其中的一些思想用于您以后的 servlet 和 JSP 網(wǎng)頁(yè)的實(shí)現(xiàn)中。
簡(jiǎn)介
小學(xué)生也可以在因特網(wǎng)上發(fā)布 HTML 網(wǎng)頁(yè)。但是,小學(xué)生的網(wǎng)頁(yè)和專業(yè)開發(fā)的網(wǎng)站有質(zhì)的區(qū)別。網(wǎng)頁(yè)設(shè)計(jì)人員(或者 HTML 開發(fā)人員)必須理解顏色、用戶、生產(chǎn)流程、網(wǎng)頁(yè)布局、瀏覽器兼容性、圖像創(chuàng)建和 JavaScript 等等。設(shè)計(jì)漂亮的網(wǎng)站需要做大量的工作,大多數(shù) Java 開發(fā)人員更注重創(chuàng)建優(yōu)美的對(duì)象接口,而不是用戶界面。JavaServer Pages (JSP) 技術(shù)為網(wǎng)頁(yè)設(shè)計(jì)人員和 Java 開發(fā)人員提供了一種聯(lián)系鈕帶。
如果您開發(fā)過大型 Web 應(yīng)用程序,您就理解 變化 這個(gè)詞的含義。“模型-視圖-控制器”(MVC) 就是用來幫助您控制變化的一種設(shè)計(jì)模式。MVC 減弱了業(yè)務(wù)邏輯接口和數(shù)據(jù)接口之間的耦合。Struts 是一種 MVC 實(shí)現(xiàn),它將 Servlet 2.2 和 JSP 1.1 標(biāo)記(屬于 J2EE 規(guī)范)用作實(shí)現(xiàn)的一部分。盡管您可能永遠(yuǎn)不會(huì)用 Struts 實(shí)現(xiàn)一個(gè)系統(tǒng),但了解一下 Struts 或許使您能將其中的一些思想用于您以后的 Servlet 的 JSP 實(shí)現(xiàn)中。