Thanks
Sathish kumar
SCJP, SCWCD
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Thanks
Sathish kumar
SCJP, SCWCD
G.Sathish kumar wrote:
Struts2 also giving support for JSP, Tiles, XSTL, Velocity/FreeMarker, PDF, Excel, JasperReports.
G.Sathish kumar wrote:
what i feel the difference between struts2 and spring mvc like spring have support like login mechanism and roll wise access on the view or model or resource.
G.Sathish kumar wrote:
we no need to use springutil to access the beans so instead we can call the bean by setter injection on controllers.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Thanks
Sathish kumar
SCJP, SCWCD
<action name="Logon" class="tutorial.Logon">
<result type="redirectAction">Menu</result>
<result name="input">/Logon.jsp</result>
</action>
Struts 2 uses Action properties as input properties
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Thanks
Sathish kumar
SCJP, SCWCD
G.Sathish kumar wrote:
Can i know why you hating to use action properties. it is advantage only write?
action properties means what i understand is the setter getter which is there in the action (controller) class to get the value automatically when on submit request.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:I think it would be better if the framework enforces or encourages right design, and not allow doing strange thing.
It would be difficult if there are 10 devs in team, then I tell devs, don't use this feature, it's not good. There will be questions, why it's not good? If it's not good why the framework allows? I don't want to waste my time to answer these questions if I have another option that there is another framework that offers equal capabilities and enforces right design.
This applies to any framework in general, not just Web MVC frameworks.
Anyway as I said it's only my preference. The thing that I said is true that Struts 2 allows to put properties into actions which I think it's strange, and I don't like it. I don't think this is denigrating.
Struts 2 or even Struts 1 are decent frameworks, I don't mean it's unusable, if you read all of my opinions, you will see that I've already said, if we can live with this fact, it's all right.
Before correct or improve something, we have to accept it first, who know? Struts 3 might be much better than Spring Web MVC. Developers community will get benefits from competition.
Thanks
Sathish kumar
SCJP, SCWCD
David Newton wrote:Struts is *only* the web layer; it has no intention or desire of providing anything other than the web layer.
Thanks
Sathish kumar
SCJP, SCWCD
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:
G.Sathish kumar wrote:
Struts2 also giving support for JSP, Tiles, XSTL, Velocity/FreeMarker, PDF, Excel, JasperReports.
Thanks for info, in that case Struts 2 and Spring Web MVC are equals in terms of View technologies support.
G.Sathish kumar wrote:
what i feel the difference between struts2 and spring mvc like spring have support like login mechanism and roll wise access on the view or model or resource.
Do you mean Spring Security? If you mean that, you can also use Spring Security with Struts 2 (or just plain-old servlets).
G.Sathish kumar wrote:
we no need to use springutil to access the beans so instead we can call the bean by setter injection on controllers.
You can use Spring Framework with Struts, so that is not an advantage of Spring Web MVC over Struts. We can DI anything to Struts Actions.
How about flexibility of view resolver and handler mappings? You can read detail of what Spring Web MVC supports on http://static.springsource.org/spring/docs/2.5.x/reference/mvc.html.
How about Validation in Struts 2? Spring Web MVC decouples Controllers and Validators, the Controllers just know Validator interface, not implementation. What is Struts 2 design about this?
Thanks
Sathish kumar
SCJP, SCWCD
G.Sathish kumar wrote:
you mean that docoupling between view controller model but it is looking same as like struts2 provide so can you please explain bit Elaborate because i looked the code in spring mvc so what i feel is
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
thanks
Sanjay
<a href="http://www.sanjaypatel.name" rel="nofollow">http://www.sanjaypatel.name</a>
Sanjay Kumar Patel wrote:Sorry for opening an old thread but I have some quite related questions. I am learning struts 2.1.8 and pondering over whether to use Spring MVC or Struts 2.1.8 for a web application. My specific question is - "Where does Struts 2.1.8 win from Spring MVC?" The answer could be something like "it has a jQuery Plugin, it has convention over configuration, it has good books and help material, etc." Curious to know all that could make Struts 2.1.8 win. If the list is not convincing, why would one choose Struts 2.1 over Spring MVC?
thanks,
Sanjay
Thanks
Sathish kumar
SCJP, SCWCD
Sanjay Kumar Patel wrote:My specific question is - "Where does Struts 2.1.8 win from Spring MVC?" The answer could be something like "it has a jQuery Plugin, it has convention over configuration, it has good books and help material, etc." Curious to know all that could make Struts 2.1.8 win. If the list is not convincing, why would one choose Struts 2.1 over Spring MVC?
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
G.Sathish kumar wrote:
Spring MVC have what ever the option available in struts2 even more.
i feel spring mvc is good to use because spring is integration framework so you can you dependency injection spring jdbc wrapper orm aop
as single framework help your all requirement instead struts2 is only mvc framework support.
thanks
Sanjay
<a href="http://www.sanjaypatel.name" rel="nofollow">http://www.sanjaypatel.name</a>
Sanjay Kumar Patel wrote:
Doing some digging tells me that Struts 2.1.8 has a nice jQuery plugin (http://code.google.com/p/struts2-jquery/), whereas I could not see AJAX support in Spring MVC. Also, I do not know whether Spring MVC supports convention over configuration to the extent the convention plugin of Struts 2.1.8.
Comments?
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:
Sanjay Kumar Patel wrote:
Doing some digging tells me that Struts 2.1.8 has a nice jQuery plugin (http://code.google.com/p/struts2-jquery/), whereas I could not see AJAX support in Spring MVC. Also, I do not know whether Spring MVC supports convention over configuration to the extent the convention plugin of Struts 2.1.8.
Comments?
Spring Web MVC supports CoC.
http://static.springsource.org/spring/docs/2.5.6/reference/mvc.html#mvc-coc
Regarding JavaScript, Spring JavaScript is an abstraction over Dojo (at least for now).
http://static.springsource.org/spring-webflow/docs/2.0.x/reference/html/ch11.html
Spring JavaScript doesn't tie to Spring Web MVC or Spring Web Flow, we can use Spring JavaScript in any environments.
Nevertheless, I don't like Spring JavaScript much because I don't like Dojo's documentation.
Thanks
Sathish kumar
SCJP, SCWCD
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|