Spring-Spring MVC2 Comments

PropertiesMethodNameResolver, a flexible MultiActionController method name resolver, to define the mapping between the URL and method name explicitly. See following example :

  • MultiActionController

A MultiActionController example.

  • PropertiesMethodNameResolver

With PropertiesMethodNameResolver, you can map whatever URL name to corresponds method name easily :

Now, the URL will map to the method name in the following pattern :

  1. /customer/a.htm –> add() method
  2. /customer/b.htm –> update() method
  3. /customer/c.htm –> delete() method
  4. /customer/d.htm –> list() method
  5. /customer/whatever.htm –> add() method
By default, MultiActionController is used the InternalPathMethodNameResolver to map URL to the corresponds method name.

2 Comments on this article

Add a comment


Warning: stream_socket_client(): unable to connect to http://browscap.org/version (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /home/javasail/public_html/wp-content/plugins/wp-statistics/vendor/browscap/browscap-php/src/phpbrowscap/Browscap.php on line 1366

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/javasail/public_html/wp-content/plugins/wp-statistics/vendor/browscap/browscap-php/src/phpbrowscap/Browscap.php on line 769