早教吧作业答案频道 -->英语-->
急求英文翻译1.Aviewdisplaystheinformationcontainedinamodel,takingentireresponsibilityformarkuporothercontentgeneration.Aviewneedn'tknowanythingabouttheimplementationofthecontrollerortheunderlyingbusinessobject
题目详情
急求英文翻译 1. A view displays the information contained in a model, taking entire responsibility for markup or other content generation. A view needn't know anything about the implementation of the controller or the underlying business objects.
2. JSP is the most used view technology for J2EE applications, although, as we'll see in the next chapter, there are several valid alternatives. We've noted that JSP gives us the power to do things that are inappropriate in views. The following guidelines indicate what operations are appropriate in views:
3. A view should be wholly responsible for generating web content, given data models.
4. A view should not work directly with request parameters. A controller should intercept incoming requests, and provide the view with models.
5. A view should not perform data retrieval (for example, by running SQL queries). The view should merely display data, which will be exposed by one or more models. The Dispatcher View J2EE Pattern (Core J2EE Patterns) in which a JSP view retrieves data using a helper as it renders, is fundamentally broken, as it is vulnerable to unexpected errors during rendering. Core J2EE Patterns terms the controller-managed data retrieval described here the Service-to-Worker pattern. (No, I don't understand how they thought up these names, either.)
6. A view may need to perform display logic, as distinct from control logic or business logic. Examples of display logic include displaying the rows of a table in alternate colors, or displaying additional information on a generated page if the model contains optional data. Such logic does not belong in controllers, as it's unique to a particular presentation.
7. A view should not have to deal with data-retrieval failures. In practice, this means that properties and methods exposed by models should not throw exceptions; data retrieval should be complete before a view begins to render
2. JSP is the most used view technology for J2EE applications, although, as we'll see in the next chapter, there are several valid alternatives. We've noted that JSP gives us the power to do things that are inappropriate in views. The following guidelines indicate what operations are appropriate in views:
3. A view should be wholly responsible for generating web content, given data models.
4. A view should not work directly with request parameters. A controller should intercept incoming requests, and provide the view with models.
5. A view should not perform data retrieval (for example, by running SQL queries). The view should merely display data, which will be exposed by one or more models. The Dispatcher View J2EE Pattern (Core J2EE Patterns) in which a JSP view retrieves data using a helper as it renders, is fundamentally broken, as it is vulnerable to unexpected errors during rendering. Core J2EE Patterns terms the controller-managed data retrieval described here the Service-to-Worker pattern. (No, I don't understand how they thought up these names, either.)
6. A view may need to perform display logic, as distinct from control logic or business logic. Examples of display logic include displaying the rows of a table in alternate colors, or displaying additional information on a generated page if the model contains optional data. Such logic does not belong in controllers, as it's unique to a particular presentation.
7. A view should not have to deal with data-retrieval failures. In practice, this means that properties and methods exposed by models should not throw exceptions; data retrieval should be complete before a view begins to render
▼优质解答
答案和解析
作为控制器的核心是在MVC的Web应用程式,让我们考虑控制器第一.
看了 急求英文翻译1.Aviewd...的网友还看了以下:
英语翻译、急虽然我和她认识了5年了,但是我还不是很确定是否要和她做朋友.英语翻译、急.谢谢. 2020-04-09 …
关于改善体质的英语句子,带翻译。急急急急急急急急,第一采纳 2020-04-09 …
求大神帮忙写英语作文要点:1.你心中的偶像是谁(写凤凰传奇)2.你为什么喜欢他/她呢?3.你是不是 2020-05-13 …
关于高适写的别董大二首其二的译文急、急、急!我要第二首的译文,不要搞错啊! 2020-06-26 …
《周礼·考工记·鲍人》中“若苟一方缓一方急,则及其用之也,必自其急者先裂.”怎么翻译?麻烦帮忙翻译 2020-07-14 …
牛津版英语7aUnit4Food课文中文翻译。急急急急急急急!!!!!!!!!!!!会加分的!!!W 2020-10-30 …
帮忙翻译成英语.不要用翻译器.急急急急急急急急!你好,Amy.最近好吗?我最近感到很困扰.每天作业很 2020-11-27 …
“玛丽和格林已经结婚三十多年了”用英文怎么翻译?告急作业,急,急,急!会翻译的帮帮忙! 2020-12-19 …
英文翻译:急急急!各位高手帮帮忙!跪求快来戳我快看我英文翻译:有一部名为VerticalLimit的 2021-01-13 …
有关月亮的诗句+翻译,急急急急急!~ 2021-01-20 …