File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using simple url handler mapping

 
pradeep talekar
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic