Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC controller request url mapping

 
Rishat Valeye
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, everyone!
I can't understand what is wrong with my code. Could you please help me.
Here the code:
springapp-servlet.xml contains:
Controller class:
I thought that when I open url localhost:8080/myapp/views/index.jsp
the controller must dispatch this request and redirect me to page1, where variable result will be available. But instead I get warning in my jBoss console and nothing happens:
Whats wrong with my code and config file?
Thanks in advance)
 
Joseph Mokenela
Ranch Hand
Posts: 66
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post a web.xml file also?
 
Rishat Valeye
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, but I've already solved the problem.
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rishat Valeye wrote:Thanks, but I've already solved the problem.

Good! But could you share what was wrong? I guess the config of view names were wrong, right?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic