| java.lang.Object org.apache.struts2.dispatcher.mapper.RestfulActionMapper
RestfulActionMapper | public class RestfulActionMapper implements ActionMapper(Code) | |
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.
|
Field Summary | |
final protected static Log | LOG |
LOG | final protected static Log LOG(Code) | | |
|
|