Its been a long time and I finally have something I need to ask
here :)
My question is for people who have or know how to built web
applications in Spring MVC 2.5 from scratch.
Heres the problem. I am trying to configure Spring in my webapp to use
Spring's Annotated controllers. I am using netbeans as my IDE.
As a result of some googling, I got a lot of examples and steps on how
to go about configuring the springs context, etc. But the problem is
that none of them actually works here
I gave the @Controller and @RequestMapping("/login/*") in my
controller class and @RequestMapping(value = "dologin",
method=RequestMethod.GET) for my method I need to get executed when
the action path of my request is "/login/dologin.htm", where *.htm is
the url pattern configured in my Dispatcher Servlet.
As for the spring context, I have the viewResolver defined as the
InternalResourceViewResolver with prefix as "/WEB-INF/jsp/" and
postfix as ".jsp".
I have also used the <context:component-scan base-
package="com.ak.loginapp"> in my spring context file. The classes are
available within the basepackage, inside sub packages called
controller, service, etc. ie, my LoginController is inside <base-
package>.controller.
My project is getting built, but on execution, I keep getting 404
errors and when I tried debugging, I found that the execution control
is not even reaching the controller method. I have tried all examples
that I found from the internet and for all of them I keep getting
this.
I use JDK6 with Spring 3.0.6 library, which is already available
within Netbeans. I did try replacing them with the jars I downloaded
from Springsource.
So, any ideas on what might be wrong here?
--
You received this message because you are subscribed to the Google Groups "Programmer's Avenue" group.
To post to this group, send email to progav@googlegroups.com
To unsubscribe(which is not recomended at all) from this group, send email to progav-unsubscribe@googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/progav
P.S : In case of any grievances/issues/comments/suggestions regarding this group, please contact the group owner.


0 comments:
Post a Comment