• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HandleRequestInternal is not called in spring

 
Gourav Bansal
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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???

Please help me
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quick question, not about your issue though.

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?

Mark
 
Gourav Bansal
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,

Thanks for reply

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
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gourav Bansal wrote:Hi Mark,

Thanks for reply

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.

http://www.mkyong.com/spring3/spring-3-mvc-hello-world-example/

http://www.giantflyingsaucer.com/blog/?p=2395

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic