i am new to the spring and trying a simple example but the view is not getting displayed. Please help me come out of this problem.
web.xml
MyApp-servlet.xml
MyController.java
My first page
index.jsp
When i run the above prgm i am assumimg that my view name:"NewRegistrationPageView.jsp" should be called but now it call "RegistartionPage.jsp" which was my initial request.
Even the dumpstack and the sysout also not on the console so i am thinking that handleRequestInternal is not called.
one more thing here is that i got from the console is
Feb 15, 2012 11:17:26 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
it seems to be the BeanNameUrlHandlerMapping is not getting associate or override the AbstractUrlHandlerMapping. Is it so???
If you are new to Spring, which version of Spring are you using? Your code is using very old style of Spring MVC, and not what I would recommend a new person to Spring to learn. I would recommend using the latest Spring and latest Spring techniques.
Or are you learning based on working at a company that has this legacy code that you will have to work with?
i have the latest jar of spring 3 and i referring to vaannila spring tutorials.
if this is not good then to whom i refer.
Please help me in this example also.
Thanks,
Gourav Bansal
Check the date of those tutorials. Old tutorials still exist and will lead you down the wrong path. Make sure you search of more recent ones.
I recommend getting Spring in Action 3rd Edition, the Spring documentation on springframework.org, also if you can afford it to take the Core Spring class from SpringSource.
Here are a few tutorials I got when I did a Google search for Spring MVC tutorial and selected more tools and selected past year from the more tools left links.