来自jsp页面的MVC架构 [英] MVC architecture from jsp page

查看:130
本文介绍了来自jsp页面的MVC架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个只有jsp页面的项目,仅在jsp页面中,在scriptlets中我正在编写所有servlet代码。我怀疑的是,对于在src包中分别编写servlet而来说,休闲是否会让Der有任何优势。?

I am developing a project with only jsp page , in jsp pages only , in scriptlets I am writing all servlet code. My doubt is , will dis kind of projects fallow MVC model and if fallow is Der any advantage over writing servlet separatly in src packages.?

推荐答案

请不要说'dis'和'der',它是迟钝的。错别字很好,但街头谈话很烦人。



模型/视图/控制器风靡一时,因为Microsoft框架使用它,但它是一个旧的设计图案。 MVC(微软版)是我见过的最好的网络平台,但是如果你没有使用它,那么尝试在另一个平台上模仿它并没有什么好处。使用您正在使用的平台,设计使用的方式,而不是追逐趋势。
Please don't say 'dis' and 'der', it's retarded. Typos are fine, but 'street talk' is just annoying.

Model/View/Controller is all the rage because the Microsoft framework uses it, but it's an old design pattern. MVC ( the microsoft version ) is the best web platform I've ever seen, but if you're not using it, there's no real benefit in trying to mimic it in another platform. Use the platform you're using, the way it's designed to be used, not to chase trends.


这篇关于来自jsp页面的MVC架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆