aspose file tools*
The moose likes Spring and the fly likes using simple url handler mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "using simple url handler mapping" Watch "using simple url handler mapping" New topic
Author

using simple url handler mapping

pradeep talekar
Greenhorn

Joined: Dec 02, 2012
Posts: 1
Hello,
I want to use simple url handler mapping for the following example :

index.jsp contains :-


web.xml [deployment descriptor] contains :-


rmc-servlet.xml contains :


LoginController.class contains :-


HelloWorldPage.jsp contains : -${msg}


But every time I get /upload.form resource not available.
I suspect there is some problem with the mapping.

Thanks a lot.

Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1666
    
    7

Is there a specific reason why you are not using the preferred @Controller model with the RequestMappingHandlerAdapter? This adapter is much more powerful and flexible than the others. Typically you should not need to implement any Spring interfaces or extend any Spring classes (like AbstractController) with the newer model. This decreases coupling to the framework.

See a sample application here:
https://github.com/SpringSource/spring-mvc-showcase


The simple URL mapping requires explicit configuration for each controller and does not auto detect mappings. Using this approach will lead to very large config files if you have a large number of controllers.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using simple url handler mapping