Difference between Spring framework and Struts framework?
Answer Posted / lopus pmj
1. Struts is a web framework only, Struts can be compare with the SpringMVC. And SpringMVC is subset of the Spring framework. So we can say that Sturts can be seen as the subset of the spring framework in functionality point of view.
2. What Action class do in struts, Controller does in Spring. And action in Struts is a Abstract class but Controller in Spring is an interface, This is very good advantage of the spring.
3. Spring don't have any action from, it bind the http form values directly into pojo. Instead of initializing the form bean spring directly initialize the domain object.
4. ActionForward in struts is replace with the ModelAndView in Spring. Model component contain the business object to be displayed via view component.
5. Unlike Struts Spring don't provide any separate tag library.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
What are the types of interface used in the java collections? : java collections
What are the main classes of the list interfaces? : java collections
What are the different types of classes implemented in the set interfaces? : java collections
What are the queues in the java collection framework? : java collections
HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
What are the types of java collections? : java collections
Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com
who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.
please mail me the interview question based on java/j2ee
What are the different types of features of the java collections framework? : java collections
Which sorting algorithm is used by collections.sort() in java ?
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
How is hashset maintained in memory by java ?