This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

WebApplicationContext.getBean() is not giving bean object?  RSS feed

selva raja
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to access bean that defined in context-servlet.xml file and this file is configured in web.xml as
<description>context servlet</description>
<servlet-class> org.springframework.web.servlet.DispatcherServlet
i am using Spring-Version: 2.0.6
once i access bean using below line of code
WebApplicationContextUtils.getWebApplicationContex t(request.getSession().getServletContext()).getBea n("bean name") it returns null....

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!