File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes @Requestmapping Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "@Requestmapping" Watch "@Requestmapping" New topic
Author

@Requestmapping

mike molin
Greenhorn

Joined: Nov 11, 2010
Posts: 14
How does requestmapping works ?
i am just trying to print something in the console but nothing happens?
any ideas?

class


webb xml:



spring xml
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16624

I always get confused if you need a "/" in front, but you definitely need "*" in your mappings for the DispatcherServlet.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
mike molin
Greenhorn

Joined: Nov 11, 2010
Posts: 14
It's working now , seems to be some kind of bug , i just had to move the jsp from web-content to WEB-INF :-)
 
 
subject: @Requestmapping
 
Threads others viewed
spring security 3.1 login not working.
Problem running app under Tomcat v7
How to register ContextLoaderListener ?
org.springframework.web.servlet.DispatcherServlet noHandlerFound
Spring MVC question
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture