Win a copy of Terraform in Action this week in the Cloud forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

using simple url handler mapping

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

Posts: 1682
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:

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.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic