• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

using simple url handler mapping

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic