freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

三大框架外文翻譯精(完整版)

2024-12-19 08:19上一頁面

下一頁面
  

【正文】 age sentence plications of relation the calculate way use the way of object description, to a large extent simplification logarithms according to of search, speed development of efficiency. Have in the Hibernate a simple but keep the API of view, used for to the database mean of object performance search. Want to establish or the modification be these objects, need in the procedure carry on with them to hand over with each other, then tell Hibernate to keep. So, a great deal of pack hold out for long time turn operation of business logic no longer demand write a trivial JDBC language sentence, make data last long thus the layer got biggest of simplification. Use the Struts realization MVC structure MVC(ModelViewController) is put forward by the Trygve Reenskaug, first drive application in the environment SmallTalk80, is many to hand over with each other with interface system of constitute foundation. According to the need of variable of the interface design, MVC hand over with each other constitute of system to resolve into model and see diagram, controller three part. Model(Model) is software processing problem logic at independence in outside manifestation under contents and form circumstance of inside abstract, packed the core data, logic of problem and function of calculation relation, independence in concrete of interface expression and I/O operation. See diagram(View) mean information and particular form demonstration of model data and logic relation and appearance to the customer. It acquire a manifestation information from the model, there can be many for homology of information dissimilarity of manifestation form or see diagram. The controller(Controller) is a processing the customer hand over with software with each other operation of, its job is control provide model in any variety of dissemination, insure a customer interface among the model of rightness should contact??捎喼频牟僮?,可訂制的視圖方案 :通過 name/value Map靈活的模型傳送 ,用一個簡單的方法從簡單到復(fù)雜操作映射和視圖方案策略 。 一個控制器執(zhí)行可以通過response 返回 ModelAndView 對象 null 就可以直接寫到一個視圖 里, 在 一般情況下 ,一個 ModelAndView 實例結(jié)合了一個 view 和一個 model Map,包含了 bean name 和通訊對象 (像命令或者 form,參考數(shù)據(jù)等等 )。 換句話說 ,它通常可以很好的直接 綁 定你的業(yè)務(wù)對象 。 或 者 用 DataSource TransactionManager or HibernateTransactionManager 來實現(xiàn)的單個數(shù)據(jù) 庫交換。這樣的目標(biāo)更好的重用和易測 ,過分依靠不必要的容器和框架將不能實現(xiàn)這一點(diǎn)。在 Struts中,主要存在三種 Bean,分別是: Action,ActionForm, EJB或者 Java Bean。 ActionServlet是一個通用的控制組件。通常一個視圖對應(yīng)一個控制器。要創(chuàng)建或修改這些對象,只需在程序中與它們進(jìn)行交互,然后告訴 Hibernate保存即可。目前使用的數(shù)據(jù)庫基本上都是關(guān)系型數(shù)據(jù)庫,而 Java本質(zhì)上是一種面向?qū)ο蟮恼Z言,對象在存儲和讀取時使用 SQL和JDBC進(jìn)行數(shù)據(jù)庫操作,降低了編程的效率以及系統(tǒng)的可維護(hù)性; (2)傳統(tǒng)的 J2EE應(yīng)用多采用基于 EJB的重量級框架,這種框架適合于開發(fā)大型企業(yè)應(yīng)用,但是使用 EJB容器進(jìn)行開發(fā)和調(diào)試需要耗費(fèi)大量時間。為了降低代碼的耦合性,提高系統(tǒng)的開發(fā)效率,本文提出了一種基于 Struts框架、 Hibernate框架 和 Spring框架 的 J2EE應(yīng)用開發(fā)策略。這樣,大量封裝持久化操作的業(yè)務(wù)邏輯不再需要編寫煩瑣的 JDBC語句,從而使數(shù)據(jù)持久層得到了極大的簡化。模型、視圖與控制器的分離,使得一個模型可以具有多個顯示視圖。這個控制組件提供了處理所有發(fā)送到 Struts的 HTTP請求的入口點(diǎn) , 它截取和分發(fā)這些請求到相應(yīng)的動作類(這些動作類都是 Action類的子類)。 Struts框架沒有具體定義模型層的實現(xiàn),在實際開發(fā)中,模型層通常是和業(yè)務(wù)邏輯緊密相連的,并且要對底層數(shù)據(jù)進(jìn)行操作。 當(dāng)然 ,Spring 有 自己的 web 支持和通??蚣苣J?細(xì)致完整 。 Spring 框架通過配置操作 mappings,展示 resolution,本地化和模版集成圍繞著分派請求操作的 servletDispatcherServlet 設(shè)計的 。 這也是和 struts圍繞請求基礎(chǔ)類 Action 和 ActionForm (每個 action 操作類型 ) 建立主要的不同之一 。 View 名稱是非常高端的配置 , 不是通過 bean name,一個 properties 文件就是通過你自己的 ViewResolver.這個抽象的 model Map 允許你在視圖層面完成提取 ,沒有任何的爭辯JSP/Velocity 或者其他 ,每一種都可以直接完整使用 .這個 model Map 還可以簡單得得到適當(dāng)?shù)母袷交瘮?shù)據(jù)的轉(zhuǎn)換 ,像 JSP 請求屬性或者 Velocity 模版模式 . 如果你不想用 Spring的 web MVC, 但是想借用 Spring嫁接 其他的解決方案 ,你可以非常簡單地通過 Spring 繼承你自己的 web 框架 , 你可以非常簡單地通過ContextLoaderListener 啟動一個 Spring root application context,并且 ,通過 Struts 或者 WebWork 的 action 利用 ServletContext 屬性 (或者 Spring 的helper 方法 )存取它 。 以在 J2EE應(yīng)用中非常普遍的用戶登錄過程為例來說明上述體系結(jié)構(gòu)是如何具體運(yùn)用的。 It accept a customer of importation, give176。s Hessian/Burlap. The framework is designed to grow with the needs of your applications, in terms of technology choice: For example, you will probably use JTA via Spring39。 properties as Strings in your form objects, just to be able to handle invalid submissions, or to convert the Strings properly. Instead, it39。s services can be at your fingertips even without Spring39。t pete with Struts or WebWork in this usage, it just addresses the many areas that the pure web frameworks don39。s view resolution is extremely flexible. A Controller implementation can even write a view directly to the response, returning null as ModelAndView. In the normal case, a ModelAndView instance consists of a view name and a model Map, containing bean n
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1