The choice of springmvc and struts2

2010-10-30  来源:本站原创  分类:Java  人气:132 

I am a Bird Lay. In a large interviewer asked me a question like "select SSH in the two sites do with that what kind of why so many choose their own advantage." I remember when I was to utter a pass. The results blew the interview. Back to GOOGLE a bit. Made a simple summary. (If we do not welcome thread, do not call me).
First, the efficiency of:
struts2 framework is the class-level interceptors, each to a request to create an Action, then call the setter getter method to request data into the
struts2 by setter getter methods are actually dealing with the request
struts2, an Action object that corresponds to the context of a request
spring3 mvc different, spring3mvc is the method level interception after interception to the method parameter annotations according to data injected into the spring3mvc request in the context of a method corresponding to a request
struts2 action generates a corresponding implementation for each request so the non-cases,
This is a personal victory that spring slightly.
Spring code also looks very comfortable, struts2 quite arbitrary point.
Therefore, development of personal feel that spring up to write the code even more comfortable since it is mainly benefit the spring of ioc.
But
Struts2 and show a little bit better with the support such as support for ajax. And freemaker. Valdate also has its own control.
There are multi-lingual struts2 technology is also very good so I chose the first struts2 or springmvc see you on more of a familiarity with the framework that you needs. If you want the page template with respect and a better deal or a little on the choice of struts2. Otherwise, choose some spring development will Gengshuang

相关文章
  • The choice of springmvc and struts2 2010-10-30

    I am a Bird Lay. In a large interviewer asked me a question like "select SSH in the two sites do with that what kind of why so many choose their own advantage." I remember when I was to utter a pass. The results blew the interview. Back to GOOGL

  • SpringMVC与 Struts2区别 2014-08-04

    Spring MVC PK Struts2 我们用struts2时采用的传统的配置文件的方式,并没有使用传说中的0配置.spring3 mvc可以认为已经100%零配置了(除了配置spring mvc-servlet.xml外). Spring MVC和Struts2的区别: 1. 机制:spring mvc的入口是servlet,而struts2是filter(这里要指出,filter和servlet是不同的.以前认为filter是servlet的一种特殊),这样就导致了二者的机制不同,这里就

  • struts2.1.6 + spring2.0 + hibernate3.2 be easily configured to 2010-03-19

    Recent study ssh2 integration of programming, by the way here, what next struts2 news updates, download a new version of the 2.1.8.1 version of struts2, using MyEclipse8.0 development, but the problem came along. MyEclipse8.0 in the built-in struts2

  • SpringMVC深度探险(一) -- SpringMVC前传 2012-11-17

    本文是专栏文章( SpringMVC深度探险 )系列的文章之一,博客地址为: http://downpour.iteye.com/blog/1330537 在我们熟知的建立在三层结构(表示层.业务逻辑层.持久层)基础之上的J2EE应用程序开发之中,表示层的解决方案最多.因为在表示层自身的知识触角很多,需要解决的问题也不少,这也就难免造成与之对应的解决方案层出不穷. 笔者在很多讨论中经常可以看到类似"某某框架已死",或者"某某框架已经足以打败所有其他的框架"的言论.

  • SpringMVC源码剖析(一)- 从抽象和接口说起 2013-01-07

    SpringMVC作为Struts2之后异军突起的一个表现层框架,正越来越流行,相信javaee的开发者们就算没使用过SpringMVC,也应该对其略有耳闻.我试图通过对SpringMVC的设计思想和源码实现的剖析,从抽象意义上的设计层面和实现意义上的代码层面两个方面,逐一揭开SpringMVC神秘的面纱,本文的代码,都是基于Spring的 3.1.3RELEASE版本. 任何一个框架,都有自己特定的适用领域,框架的设计和实现,必定是为了应付该领域内许多通用的,烦琐的.基础的工作而生.Sprin

  • SpringMVC 与 Struts 2的区别 2014-08-04

    SpringMVC作为MVC框架,与Struts 2 有着异曲同工之处,首先对比一下SpringMVC与Struts2的不同之处: 1. 机制:spring mvc的入口是servlet,而struts2是filter(这里要指出,filter和servlet是不同的.以前认为filter是servlet的一种特殊),这样就导致了二者的机制不同,这里就牵涉到servlet和filter的区别了. 2. 性能:spring会稍微比struts快.spring mvc是基于方法的设计,而sturts

  • J2EE Code Generator rapid-framework3.0 2010-03-29

    Following is the changelog New plug-in springmvc_rest: spring restful plug-in is based on springmvc3.0 rc1 version, and rc1 there is a bug, now comes with a class rapid repair manual ibatis3: we follow the ibatis3 beta5 version, extended paging imple

  • Java Open Source CMS system - JEECMS v3.0.2 released the official version of open source 2011-01-05

    JEECMS V3.0.2 FINAL finally meet you, this is the first official 3.x version. We have also been concerned about the source code be released. Relative to the 2.x 3.x done a lot of improvement, regardless of design or technology from the database struc

  • 现实世界中哪些地方用到了Java? 2014-01-07

    除了Minecraft这款游戏以外,你有没有见过用Java编写的游戏.桌面系统.办公软件?如果你是一个初学者或者只是刚刚开始学习Java,你或许会疑虑,Java到底是在哪里被运用了呢?如何正确的在现实世界中运用Java? 如果你是一个起步者或者只是刚刚开始学习Java,你或许会疑虑,Java 到底是在哪里被运用的呢?除了 Minecraft 这款游戏以外,你没有见过用 Java 编写的游戏吧?桌面工具 Adobe Acrobat.微软的 Office 办公软件,他们都不是用 Java 编写,以至

  • SpringMVC freemarker tag Struts2 of 2010-03-29

    The title seems a funny name ah ^ _ ^ Previously been using Struts2 + freemarker, in which the use of $ (base) $ (getText ("***")} feel very comfortable, and now try to use SpringMVC <@spring.url "/***.html"/> <@spring.message

  • ajax file upload three ways (supports batch) - struts2, jspServlet, springMVC 2011-01-07

    3 different ways to write a file upload, Danshi front with the way are ajax, using the uploadify jq plug some of the properties on the plug-in is not in this to say, you can go online. Struts2 and jspServlet annex is the 2 demo project, springMVC the

  • struts2的项目移到springmvc上 2012-10-16

    今天蛋疼了.项目需要,一个原先用struts2的项目要移到一个springmvc框架的项目上.之前以为很简单,原先的action换成controller,DAO换成service就行,没想到做的时候发现最大的难点是以前jsp都用的struts2标签写的.如果用springmvc的话我只会用ext在js里那种写法.根本不适合原先的jsp+jquery的用法.最闹听的是让我不用struts标签我就不会了啊. 好了吐槽完毕,捣鼓了一天,有了眉目,还没弄完,不过今天搞的信息量超大.停下来记录备忘下. 今

  • struts2 和 springMVC的区别 2015-03-26

    首先说一下Struts2的的要点 实现机制: struts2 基于filter机制 处理方式: struts2是类级别的拦截,每次来个请求就会创建一个action,然后调用setter,getter方法把request中的 数据 注入,struts2实际上是通过setter getter方法同request打交道的.Struts2中一个action对象对应一 个request上下文: 性能: struts2是基于类的,每次发一次请求都会实例一个action,每个action都会被注入属性: 参数

  • struts1.x.struts2.x and springmvc of 2010-06-13

    From the current javaEE project, the framework of the view layer of small sum of total cells. 1: struts1.x A process: 1 Preparatory work: server startup, Web application will be loaded at startup initialization actionServlet and recorded struts web.x

  • 2.1 framework, library selection - the main framework for choice 2010-03-29

    In the framework of the choice of many factors that could be considered, the project needs, technical strength and support to the more mature framework. Here, I chose the Spring3 + hibernate3. On these two broad framework. Of course, there will be N

  • With regard to the choice of Ajax framework 2009-07-31

    Recently, many of my friends in the project to use Ajax, I also asked on the Web project Java How to Choose Ajax framework. With regard to the choice of Ajax framework, I would like to give my views. Ajax framework we use is the need for some specifi

  • struts2 in the output number and date formatting method 2010-03-29

    In fact, using a struts1 things, look at the parameters of action you will know - tetat elaborated on the concept of a very good one look to understand, Thanks! - WangSir this solution. . . . Do not you think that trouble? Looking forward to a better

  • struts2 with struts1 the difference between 2010-03-29

    Action class: ◆ Struts1 requested Action class inherits an abstract base class. Struts1 a common problem is to use an abstract class rather than the programming interface. ◆ Struts 2 Action class can implement an Action interface and other interfaces

  • struts1, WebWork as well as profiles and compare struts2 2010-03-29

    Struts 1 Introduction and problems in perspective from the past years, Struts 1 is a MVC framework for all indisputable winner, regardless of market share, is still owned by the development of people, Struts 1 have incomparable to other MVC framework

  • [Change] Struts1 and Struts2 and contrast the difference between 2010-03-29

    Struts1 and the difference between Struts2 and contrast: Action class: • Struts1 requested Action class inherits an abstract base class. Struts1 a common problem is to use an abstract class rather than the programming interface. • Struts 2 Action cla