Use action-mappings elements to associate an URL with a controller command interface
Map URLs to controller commands: action-mappings
URL Store ID Controller command interface HTTPS Authenticate Credentials Accepted StoreCatalogDisplay 0 com.ibm.commerce.catalog.commands.StoreCatalogDisplayCmd 0 0 NULL AddressAdd 0 com.ibm.commerce.usermanagement.commands.AddressAddCmd 0 0 NULL AddressAdd 201 com.ibm.commerce.usermanagement.commands.AddressAddCmd 1 1 P Where:
>
- URL
- The URL name.
- Store ID
- The store reference number for this URI or 0 to mean any store.
- HTTPS
- The value of 1 indicates that the request was expected to be received on a secure channel (HTTPS) and a redirect to the SSL port will be issued if it has been received on an insecure channel (HTTP).
- Authenticate
- The value of 1 indicates that user logon is required for this URI. If the user is not logged on when trying to access this URI, the user will be redirected to the logon page before being able to proceed.
- Credentials Accepted
- The value of P indicates that partially authenticated users are entitled to access this resource.
The following action-mappings configuration element describes these associations:
<action-mappings type="com.ibm.commerce.struts.ECActionMapping"> <action path="/StoreCatalogDisplay" parameter="com.ibm.commerce.catalog.commands.StoreCatalogDisplayCmd" type="com.ibm.commerce.struts.BaseAction" /> <action path="/AddressAdd" parameter="com.ibm.commerce.usermanagement.commands.AddressAddCmd" type="com.ibm.commerce.struts.BaseAction"> <set-property property="https" value="0:0,201:1" /> <set-property property="authenticate" value="201:1" /> <set-property property="credentialsAccepted" value="201:P" /> </action> </action-mappings>Note in particular:
- The use of the parameter attribute of the action element to specify the name of the interface of the controller command to invoke.
- The values of the type attributes.
- The syntax of the value attribute of the nested set-property element: a comma-separated list of storeID : propertyValue pairs that defaults to 0:0.