jQuery in Action, 2nd edition*
The moose likes Spring and the fly likes HandleRequestInternal is not called in spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "HandleRequestInternal is not called in spring" Watch "HandleRequestInternal is not called in spring" New topic
Author

HandleRequestInternal is not called in spring

Gourav Bansal
Ranch Hand

Joined: Jun 27, 2010
Posts: 41
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

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Gourav Bansal
Ranch Hand

Joined: Jun 27, 2010
Posts: 41
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

Joined: Feb 05, 2001
Posts: 17249
    
    6

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HandleRequestInternal is not called in spring
 
Similar Threads
How to invoke method using controller class in spring
Spring MVC question
JSF Spring integration
Spring MultiActionController is not working
Spring MVC