Those first two just puts an ApplicationContext object, with your created beans, into the WebContext.
If you want access to it directly in a
Servlet class, then you shoudl use the WebContextUtils class to get the reference to the ApplicationContext to lookup your Beans.
If you are using say
Struts or Spring MVC, then there is classes already created that allow you to inject your beans into those classes. ActionSupport from Spring for Struts, and Controller classes for Spring MVC.
Mark