| A custom action mapper using the following format:
http://HOST/ACTION_NAME/PARAM_NAME1/PARAM_VALUE1/PARAM_NAME2/PARAM_VALUE2
You can have as many parameters you'd like to use. Alternatively the URL can be shortened to the following:
http://HOST/ACTION_NAME/PARAM_VALUE1/PARAM_NAME2/PARAM_VALUE2
This is the same as:
http://HOST/ACTION_NAME/ACTION_NAME + "Id"/PARAM_VALUE1/PARAM_NAME2/PARAM_VALUE2
Suppose for example we would like to display some articles by id at using the following URL sheme:
Your action just needs a setArticleId() method, and requests such as /article/1, /article/2, etc will all map
to that URL pattern.
Note: The RestfulActionMapper is not supported if you use the (deprecated) ServletDispatcher!
author: Cameron Braid author: Jerome Bernard author: Patrick Lightbody |