Hi freinds
I am new to spring & i made a project in eclipse using
maven .
i am using spring & i put below code in my
servlet
Resource resource = new FileSystemResource("beans.xml");
BeanFactory factory = new XmlBeanFactory(resource);
MyBean bean=(MyBean) factory.getBean("mybean");
and my beans.xml resides inside project/src folder
this code is working fine
now i want this initialization of beans.xml using springcontextloader
so i made these entries in web.xml file
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>beans.xmll</param-value>
</context-param>
now what changes should i made in myservlet to get factory & mybean as above