湿气重挂什么科| 陪伴是最长情的告白下一句是什么| 碱性磷酸酶偏高说明什么问题| 相亲是什么意思| 为什么硬不起来| 防微杜渐什么意思| 口球是什么| 和田玉五行属什么| 食道不舒服挂什么科| 三班倒是什么意思| prich是什么牌子| 路旁土命什么意思| 食字五行属什么| 精液偏黄是什么原因| 女生抽什么烟合适| 甲是什么生肖| nfc果汁是什么意思| 荣辱与共是什么意思| 什么的智慧| 柠檬酸是什么添加剂| 宫寒吃什么药| 致电是什么意思| 八九不离十是什么意思| 喇蛄和小龙虾什么区别| 13点是什么意思| BLD医学上是什么意思| 经血颜色淡是什么原因| 鸡鸣寺求什么| 跑单是什么意思啊| 导滞是什么意思| 副产品是什么意思| 蜂蜜不能和什么食物一起吃| 腹泻可以吃什么水果| 湿气重吃什么水果好| 肛周脓肿吃什么消炎药| cindy英文名什么意思| txt是什么意思| 横店是什么| 布施蚂蚁什么食物最好| 玉髓什么颜色最贵| 舌头裂开是什么原因| 随餐服用是什么意思| 紧急避孕药什么时候吃最有效| 想吃辣是身体缺乏什么| 三月二十六是什么星座| 八月13号是什么星座| 食指戴戒指是什么意思| 脑炎是什么原因引起的| 脑供血不足挂什么科| 无为什么意思| 什么是抑郁症| 从良是什么意思| 淡定自若什么意思| 风疹是什么症状| 比萨斜塔为什么是斜的| 跳闸是什么原因| 阴道有灼热感是什么原因| 荔枝什么品种最贵| 气虚吃什么中成药| 疯马皮是什么皮| 小儿便秘吃什么药| 糖尿病为什么治不好| 一卡通是什么| 陈皮有什么功效作用| 什么叫血沉| 细胞核由什么组成| 怀孕初期不能吃什么| 2031年是什么年| 牛筋草用什么除草剂| gm眼镜是什么牌子| bra什么意思| 月德合是什么意思| sany是什么牌子| george是什么牌子| 痛风可以吃什么| lop是什么意思| 月经不能吃什么水果| 中国最高军衔是什么| 晕车是什么原因引起的| 瑞字属于五行属什么| 开心果为什么叫开心果| 清净心是什么意思| 国家专项是什么意思| 空代表什么生肖| pvr是什么意思| 生活补贴是什么意思| 齐白石擅长画什么| 供奉是什么意思| 晚上睡觉容易醒是什么原因| 娃娃脸是什么意思| hospital是什么意思| 反流性食管炎是什么病| 小孩脚抽筋是什么原因引起的| 小孩荨麻疹吃什么药| 仙草是什么| 耍朋友是什么意思| 外耳道耵聍什么意思| 调岗是什么意思| 白化病是什么原因引起的| 唾液分泌过多是什么原因| 盆腔炎用什么药好| 池塘里有什么| 认真是什么意思| 羊水少了对宝宝有什么影响| 纷乐是什么药| 卤米松软膏主治什么| 更年期失眠吃什么药调理效果好| 冬虫夏草有什么用| 叉烧是什么肉做的| 孤独的最高境界是什么| 胀气吃什么食物好| tr是什么意思| 什么球不能拍| 乙肝两对半和乙肝五项有什么区别| 妊娠试验阴性是什么意思| 痛经吃什么药好| 迷茫什么意思| 发难是什么意思| 日柱华盖是什么意思| 半什么半什么| 5月22号是什么星座| 低骨量是什么意思| 鸡肉配什么菜好吃| 口苦是什么原因| 频繁打哈欠是什么原因| 不能人道什么意思| 新生儿拉稀是什么原因| 鹅蛋脸适合戴什么眼镜| 达字五行属什么| 尿检隐血十一什么意思| 监测是什么意思| 喝脱脂牛奶有什么好处| 肝火旺吃什么水果| 宝批龙是什么意思| 盎司是什么意思| 母亲节送妈妈什么好| EXP什么意思| ch是什么| 跑完步喝什么水最好| 莳字五行属什么| 乙木的根是什么| z是什么火车| 尿酸高可以吃什么| 早上起来腰疼是什么原因| george是什么牌子| 美人尖是什么| 荷花什么季节开放| 刚怀孕需要注意什么| 双肺结节是什么意思| 心梗什么症状| 暴露是什么意思| 素土是什么| 大姨妈来了两天就没了什么原因| 送产妇什么礼物最合适| 洗发水什么牌子好| 艾滋病检查什么项目| 经期喝酒会有什么危害| 翕什么意思| 自燃是什么意思| 气血不足有什么症状| 吃的少还胖什么原因| 狗狗拉肚子吃什么药| 腮腺炎输液用什么药| 断章取义什么意思| 同房痛什么原因引起的| 新生儿血糖低是什么原因| 玻璃结节是什么意思| 煎牛排用什么锅| 芙蓉花长什么样| 联名款是什么意思| 眼视光医学是干什么的| 1988年是什么生肖| 送什么礼品好| 耽美剧是什么意思| 腔梗是什么病| 芈月和秦始皇是什么关系| 梦见家里水管漏水是什么意思| 指尖发麻是什么原因| 小孩咳嗽挂什么科| 与君共勉是什么意思| 什么是射频消融术| 怀孕前期有什么症状| 基层是什么意思| 开车不能穿什么鞋| 香芋紫是什么颜色| 空腹血糖偏高是什么原因| 止咳化痰什么药最好| puppies什么意思| 依云矿泉水为什么贵| 冬天喝什么汤| 闪亮的什么| st什么意思| 灵芝泡水喝有什么功效| 做春梦是什么意思| 心博是什么意思| 得过且过是什么意思| 人造革是什么材质| 春天有什么动物| 碱性体质的人有什么特征| 女生什么时候最想要| 英纳格手表什么档次| 27岁属什么| 沙砾是什么意思| 6月9号什么星座| 孕初期吃什么对胎儿好| 鼠肚鸡肠是什么生肖| 奔走相告是什么意思| 萝卜干炒什么好吃| 穿山甲用什么中药代替| 话说多了声音嘶哑是什么原因| 物色什么意思| 锁骨中间的窝叫什么| 尿素氮肌酐比值偏高是什么原因| 平安夜做什么| 什么是蛀牙| 买买提是什么意思| 吃什么白细胞升的最快| 3的倒数是什么| 6月2日什么星座| 93年是什么命| 属狗的本命佛是什么佛| 重庆古代叫什么| 空调买什么牌子的好| 好事多磨什么意思| 米干是什么| 发烧拉肚子是什么原因| 对比度是什么意思| 拆台是什么意思| 全品类是什么意思| 勃是什么意思| 愿闻其详是什么意思| mdzz是什么意思| 兆是什么意思| 钓鱼有什么好处| 朋友圈发女朋友照片配什么文字| 有什么有什么四字词语| 什么手表品牌最好| 刚怀孕初期吃什么好呢| 皇后是什么意思| 吃避孕药为什么要吃维生素c| 3月9日是什么星座| 浙江大学校长什么级别| 非淋菌性尿道炎吃什么药最好| 皮脂腺是什么| 胎儿脉络丛囊肿是什么原因引起的| 42天产后检查都检查什么项目| 脚掌脱皮是什么原因| 口舌生疮吃什么药最见效| 呵是什么意思| 吃什么会影响验孕棒检验结果| 按摩椅什么牌子最好| 米杏色是什么颜色| 什么时辰出生的人命好| 美女的阴暗是什么样的| 脚指甲盖凹凸不平是什么原因| 牢固的近义词是什么| 福泽深厚什么意思| rh血型阴性是什么意思| 乱伦是什么| 用维生素e擦脸有什么好处和坏处| 无中生有是什么生肖| 松鼠吃什么| 血糖高什么水果不能吃| 什么是gay| 百度Jump to content

作品版权动辄千万元起步 追剧的人如何影响了写作者

From Wikipedia, the free encyclopedia
A diagram of a Model 2 implementation.
A simplified diagram of the Model 2 pattern.
百度 《证券时报》的出版单位为深圳证券时报社有限公司。

JSP Model 2 is a complex design pattern used in the design of Java Web applications which separates the display of content from the logic used to obtain and manipulate the content. Since Model 2 drives a separation between logic and display, it is usually associated with the model–view–controller (MVC) paradigm. While the exact form of the MVC "Model" was never specified by the Model 2 design, a number of publications recommend a formalized layer to contain MVC Model code. The Java BluePrints, for example, originally recommended using EJBs to encapsulate the MVC Model.

In a Model 2 application, requests from the client browser are passed to the controller. The controller performs any logic necessary to obtain the correct content for display. It then places the content in the request (commonly in the form of a JavaBean or POJO) and decides which view it will pass the request to. The view then renders the content passed by the controller.

Model 2 is recommended for medium- and large-sized applications.

History

[edit]

In 1998, Sun Microsystems published a pre-release of the JavaServer Pages specification, version 0.92.[1] In this specification, Sun laid out two methods by which JSP pages could be used. The first model (referred to as "model 1" due to its ordering in the document) was a simplistic model whereby JSP pages were standalone, disjointed entities. Logic could be contained within the page itself, and navigation between pages was typically achieved by way of hyperlinks. This fit with the then-common usage of template technology.

ColdFusion and Active Server Pages are examples of contemporary technologies that also implemented this model.

The second model referred to by the document ("model 2" in the ordering) was an improved method that combined servlet technology with JSP technology. The specific difference listed was that a servlet would intercept the request, place the content to render into a request attribute (typically represented by a JavaBean), then call a JSP to render the content in the desired output format. This model differed from the previous model in the fact that JSP technology was used as a pure template engine. All of the logic was separated out into a servlet, leaving the JSP with the sole responsibility of rendering the output for the content provided.

In December 1999, JavaWorld published an article by Govind Seshadri entitled Understanding JavaServer Pages Model 2 architecture.[2] In this article, Govind accomplished two major milestones in the use of the term "Model 2". The first milestone was to formalize the term "Model 2" as an architectural pattern rather than one of two possible options. The second milestone was the claim that Model 2 provided an MVC architecture for web-based software.[3]

Govind believed that because "Model 2" architecture separated the logic out of the JSP and placed it in a servlet, the two pieces could be seen as the "View" and the "Controller" (respectively) in an MVC architecture. The "Model" part of the MVC architecture was left open by Govind, with a suggestion that nearly any data-structure could meet the requirements. The specific example used in the article was a Vector list stored in the user's session.

In March 2000, the Apache Struts project was released. This project formalized the division between View and Controller and claimed implementation of the "Model 2" pattern.[3] Once again, the implementation of the "Model" was left undefined with the expectation that software developers would fill in an appropriate solution. Database interaction via JDBC and EJBs were options suggested on the Struts homepage. More recently, Hibernate, iBatis, and Object Relational Bridge were listed as more modern options that could be used for a model.[4]

Since the release of Struts, a number of competing frameworks have appeared. Many of these frameworks also claim to implement "Model 2" and "MVC". In result, the two terms have become synonymous in the minds of developers. This has led to the use of the term "MVC Model 2" or "MVC2" for short.

Misconceptions

[edit]

A common misconception is that a formalized MVC pattern is required to achieve a Model 2 implementation. However, the Java BluePrints specifically warn against this interpretation:[5]

The literature on Web-tier technology in the J2EE platform frequently uses the terms "Model 1" and "Model 2" without explanation. This terminology stems from early drafts of the JSP specification, which described two basic usage patterns for JSP pages. While the terms have disappeared from the specification document, they remain in common use. Model 1 and Model 2 simply refer to the absence or presence (respectively) of a controller servlet that dispatches requests from the client tier and selects views.

Furthermore, the term "MVC2" has led many to a mistaken belief that Model 2 represents a next-generation MVC pattern. In fact, MVC2 is simply a shortening of the term "MVC Model 2".[6]

The confusion over the term "MVC2" has led to additional confusion over Model 1 code, resulting in common usage of the nonexistent term "MVC1".

See also

[edit]
  • Apache Struts is an open-source framework for implementing web-applications based on a Model 2 architecture.

References

[edit]
  1. ^ JSP 0.92 Specification
  2. ^ Seshadri, Govind (December 29, 1999). "Understanding JavaServer Pages Model 2 architecture". JavaWorld. Retrieved 2025-08-05.
  3. ^ a b How Struts Implements Model 2 (The Origins of Model 1/Model 2)
  4. ^ "Struts 1.x Homepage". Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  5. ^ Java BluePrints 4.4.1: Structuring the Web Tier
  6. ^ Struts, an open-source MVC implementation
[edit]
增强免疫力的针叫什么 常吐痰是什么原因 缜密是什么意思 肠易激综合征是什么病 倒睫是什么意思
心脏突然剧烈跳动是什么原因 夜尿频多是什么原因 天秤座男生和什么星座最配 卵巢囊肿是什么引起的 张良属什么生肖
冰箱买什么牌子好 插队是什么意思 甘油是什么东西 梦见火车脱轨什么预兆 交友是什么意思
锦纶氨纶是什么面料 什么饼不能吃脑筋急转弯 脂溢性皮炎是什么症状 能力是什么 红字五行属什么
jz是什么意思hcv7jop4ns7r.cn 丑角是什么意思hcv7jop4ns8r.cn 大连是什么海hcv8jop6ns5r.cn 夏天肚子疼是什么原因hcv8jop7ns3r.cn 血管硬化吃什么能软化hcv9jop5ns0r.cn
herb是什么意思hcv9jop2ns5r.cn 人生得意须尽欢什么意思hcv8jop4ns6r.cn 漂洋过海是什么生肖liaochangning.com 金是什么颜色hcv9jop3ns0r.cn 换肾是什么病hcv9jop4ns7r.cn
有机会是什么意思hcv9jop3ns5r.cn 鼻后滴漏吃什么药hcv9jop5ns4r.cn 梦见马是什么意思hcv9jop1ns1r.cn 脑硬化是什么病严重吗hcv8jop9ns7r.cn 备孕期间不能吃什么hcv8jop6ns8r.cn
困水是什么意思hcv7jop6ns0r.cn 梦见猫吃老鼠什么意思hcv8jop5ns4r.cn 经期吃什么缓解痛经hcv9jop1ns8r.cn 乳和霜有什么区别hcv8jop3ns7r.cn 孙笑川是什么梗hcv8jop8ns7r.cn
百度