I am learning Spring. I did sample Program on spring IOC and tried to apply this in my practical use. There is a Struts-Hibernate application where I tried to introduce spring IOC and it worked fine. What I want to know is whether this is a proper valid use case for using Spring IOC. This is what I did: The DAO object in
struts action class which was created with new operator , I replaced this with just creating reference and creating a Settor for it. I defined this in applicationcontext.xml. This way DAO is getting set using Spring IOC. My functionality is working fine but is it correct way I did?
thanks.