Mvc:annotation-driven effectively disables old controllers. You need to enable them by declaring.
Up vote 1 down vote favorite share g+ share fb share tw.
This may be trivial. But I didn't get any info on this. Can we have an annotated Controller implementation class and a Controller implementation class that implements Controller interface(or extends AbstractController) in the same web application?
If so what is the way to do it. I tried writing the following spring context, but the class that implements Controller was never loaded /WEB-INF/jsp/ . Jsp In my case the HomePageController is never loaded.
Is this the right way? Thanks Dhanush spring-mvc link|improve this question asked Apr 14 '11 at 8:03Dhanush Gopinath25418 90% accept rate.
Effectively disables old controllers. You need to enable them by declaring UPDATE: Functionality of DispatcherServlet is controlled by sevaral kinds of strategy classes. In particular, HandlerMapping defines a way to map URLs onto controllers, and HandlerAdapter defines a way to perform a call of particular controller.
So, lines above declare strategies that enable mapping URLs onto bean names and calling Controller classes. Actually, there strategies are enabled by default, but only if no other strategies are declared explicitly. Since declares in own strategies explicitly, you need to declare these beans explicitly as well.
Also see DispatcherServlet javadoc.
Thanks. That Worked. What does those two entries do in this case?
– Dhanush Gopinath Apr 14 '11 at 9:00 @dhanush: Updated. – axtavt Apr 14 '11 at 9:11 I hate seeing accepted answers with 0 upvotes :) – Bozho Apr 18 '11 at 8:47 @Bozho - I could't upvote it since I didn't have enough reputation (15 is needed to upvote). I am a newbie in SO – Dhanush Gopinath Apr 18 '11 at 10:32 @dhanush yes, I'm aware of that, don't worry.
That's why I upvote it :) – Bozho Apr 18 '11 at 10:42.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.