- 1、本文档共17页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
附件2:外文原文
出自《IBM?System?Journal,2006,44(2):33-37》??作者:?Malcolm?Davis
Struts——An?Open-source?MVC?Implementation
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.?
Model-View-Controller?(MVC)?
JSP?tags?solved?only?part?of?our?problem.?We?still?have?issues?with?validation,?flow?control,?and?updating?the?state?of?the?application.?This?is?where?MVC?comes?to?the?rescue.?MVC?helps?resolve?some?of?the?issues?with?the?single?module?approach?by?dividing?the?problem?into?three?categorie:??
Model??
The?model?contains?the?core?of?the?applications?functionality.?The?model?encapsulates?the?state?of?the?
您可能关注的文档
- DO-WHILE语句的翻译程序设计(递归下降法、输出四元式).doc
- DO-WHILE语句的翻译程序设计(简单优先法,输出四元式).doc
- IF-ELSE条件语句的翻译程序设计(LL(1)法、输出四元式).doc
- JSP的技术发展历史 相关 中英对照 外文文献翻译 毕业设计论文 高质量人工翻译 原文带出处 (13).doc
- AT89C51单片机英文文献附带翻译.doc
- DOC-工业设计外文文献翻译及原文-其他专业.docx
- Cost-Management-Plan-Template翻译版.doc
- Java技术及SSH框架毕业论文中英文对照资料外文翻译文献.doc
- DOC-建筑专业外文翻译----大学校园规划的整体设计-建筑结构.doc
- GPS水准测量外文翻译文献.docx
文档评论(0)