Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


Java Tutorials



Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Spring Springarchitecture

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

26 comments so far (post your own) View All Comments Latest 10 Comments:

Like all the Rose India tutorials, The Spring tutorial explains clearly how to get started with Spring framework. However, I haven't really understood why Spring is so great and what is the added value of Spring compared to other frameworks (I mean : what is the usefullness and the purpose of dependency injection )

Posted by mokhtar on Saturday, 10.2.10 @ 04:17am | #100000

Please send me the Struts framework materials to my mail id.

Posted by Saravanan on Friday, 08.27.10 @ 16:29pm | #99209

I would like to attend core Spring course.

What is the version of Spring release used in these trainings.

Posted by Lokesh S on Thursday, 07.29.10 @ 19:43pm | #98523

whenever you open the page, you will find that the title of the page is "Sping Architecture" but it would be a "Spring Architecture"

Posted by jack on Tuesday, 06.29.10 @ 10:49am | #97841

Dependency Injection
Passing the reference data service into handler and handler into controller
class ExecutiveController extends MultiActionController {
public ExecutiveHandler executiveHandler=null;

public ExecutiveHandler getExecutiveHandler() {
return executiveHandler;

public void setExecutiveHandler(ExecutiveHandler executiveHandler) {
this.executiveHandler = executiveHandler;

public class ExecutiveHandlerImpl implements ExecutiveHandler {

public ExecutiveDataService executiveDataService=null;

public ExecutiveDataService getExecutiveDataService() {
return executiveDataService;

public void setExecutiveDataService(ExecutiveDataService executiveDataService) {
this.executiveDataService = executiveDataService;

this process is known as dependencr Injecton

Posted by Mukesh on Thursday, 01.28.10 @ 17:22pm | #94404

Good & simple tutorials to understand spring in easy way rather than spending hours in reading the online documentation and getting confused at the end. I like Rose india tutorials.

Posted by prasanna on Thursday, 12.17.09 @ 10:30am | #93429

the title of the page is spelled as "SPING" . correct it and the first line of the first paragraph the "great" is spelled by "grate" it is one more spell mistache check the page once again the text spelling mistaches..

Posted by muralidhar on Sunday, 12.6.09 @ 09:29am | #93109

How could anyone read your pages if it got redircted to ad pages all the time? Please get rid of the redirects.

Posted by ernest on Thursday, 11.19.09 @ 23:43pm | #92724

I think this site is very good for the learner. I mostly use this for the solve the problem and theoritical concept.
Java/J2ee material are very good.

Posted by Mani Bhushan Kumar on Friday, 10.30.09 @ 08:59am | #92206

i didnt get clearly the concept of injection

Posted by vignesh on Wednesday, 08.19.09 @ 12:52pm | #90136

necesito informacion de java spring

Posted by natalia on Saturday, 08.1.09 @ 21:09pm | #89752

not clear enough for a beginner.

Posted by priya on Thursday, 07.30.09 @ 14:24pm | #89707

this tutorial is good but not too much clear for a beginner.Its difficult to understand

Posted by sanod on Monday, 06.29.09 @ 09:53am | #88870

I have been using this tutorial to study this framework..Please note that the title name of this page spells wrong...It has to be Spring not "Sping"!!!please correct it asap..
thanks and regards

Posted by priscilla on Wednesday, 06.10.09 @ 11:52am | #88380

Excellent tutrial i have ever got

Posted by Pintu on Monday, 04.6.09 @ 17:07pm | #86555

very fine

Posted by Krishna on Friday, 11.28.08 @ 04:30am | #82142

the information provided by you is not clear and enough and too it didnt contain all the required contents

Posted by DEVI,ILA on Tuesday, 11.18.08 @ 01:27am | #81766

Good question. In simple words:
If you want to use any framework (e.g. Struts, Hibernate, etc...) within your application, your code has to use the API provided by that framework. This makes your code that framework dependent. Spring minimizes this by rather injecting such dependencies into your application (As you go on declaring various configurations in XML files). Hence your application code is much cleaner.

That's why Rod Johnson et al. say: "Application code written as part of a Spring application can be run without Spring or any other container", yet it's not 100% freedom. E.g. for writing Spring MVC, your handler/controller has to extend one of the controllers (AbstractController) & implement "handleRequestInternal()" method that returns ModelAndView object. That's the reason why they also say: "Lock-in to Spring is <b>minimized</b>".

Thus, not only Spring code, but also any code (preferably AOP, Transaction, Security related) can be injected. This makes your application code look cleaner. (but at the same time highly configured in the background).

However, in my opinion, every new framework/technology has proclaimed to have offered to allow developer focus on business logic but only forthcoming time will reveal the truth. Because just like how people used to dream of paperless office during computer era which ironically has proven a myth as the paper usage has increased dramatically causing more & more trees chopped.

So let's wait & watch whether this Frameworks proliferation end up in making a developers' life more miserable or let them focus on business logic.

Anup Jani.

Posted by Anup Jani on Saturday, 11.15.08 @ 18:29pm | #81706

Dependency Injection was earlier referred to as "inversion of control". Here what we are doing is that the acquisition of dependencies that is being inverted. Traditionally, each object if responsible for obtaining its own references to objects it collaborates with( its dependencies) which leads to highly coupled and hard-to-test code.
In Dependency Injection, objects are given their dependencies at creation time by some external entity that coordinates each object in the system.i.e dependency is injected into objects.

Posted by Brijesh on Monday, 10.27.08 @ 09:33am | #81340

Can you provide me a detailed tutorial on springs. In the past whenever people want to learn Struts they used to refer to roseIndia, In such a way roseIndia should also refer to springs.Provide such kind of material. Thanks.

Posted by Fernandom_alayali on Friday, 08.15.08 @ 18:46pm | #72966

Dependency Injection is a form of IoC that removes explicit dependence on container APIs; The two major flavors of Dependency Injection are Setter Injection (injection via JavaBean setters); and Constructor Injection (injection via constructor arguments). Spring provides sophisticated support for both, and even allows you to mix the two when configuring the one object.

Posted by Yogesh on Thursday, 08.14.08 @ 11:31am | #72792

I love to read RoseIndia tutorials. The content is Excellent for all Technologies. My small suggestion is that few spelling mistakes are found in the tutorial. Example if you open the spring tutorial, the Title of the page spells incorrect, like "Sping Architecture", and in the Spring Architecture the first line has a spelling mistake."Spring is grate framework". Apart from few spelling mistakes the Rose India Tutorials are Excellent.

Posted by kishore on Wednesday, 07.30.08 @ 10:17am | #69917

The topic and its content is really great. I found it to be fairly simple.
Hope roseindia team to come up with even more contents and cover all the topics with indepth concept.


Posted by shravan on Sunday, 07.20.08 @ 16:52pm | #68212

spring framework explanation is Excellent.

Posted by spandana on Wednesday, 05.28.08 @ 11:42am | #61254

I didn't get clearly wht is dependency injuction,could u please explain me clearly

Posted by jyothi on Friday, 05.2.08 @ 15:48pm | #58372

Can you plz Expand AOP

Posted by Manohar on Tuesday, 04.8.08 @ 08:43am | #55608

Ask programming questions?



Back to Tutorial


  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name


Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.