Hi Won Cho , thanks for the suggestions , but
It's unfortunate that you're not taking advantage of Spring MVC or Spring Webflow.
I agree with you on this , but ours is a legacy Application (developed since 2004 ) , so we want to keep our Existing functionality working .
then I would create a Abstract Class that your servlet extends. In that Abstract class, you'll have a method like Object getBean(String beanName).
What advantage i get from this , i am thinking of writing a simple class (A factory class ) , which will be responsible to return the ApplicationContext using WebApplicationContextUtils.getWebApplicationContext(getServletContext());
What do you suggest ?? please advice . Thanks .