• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

HandleRequestInternal is not called in spring

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic