01: package com.mockrunner.example.struts;
02:
03: import org.apache.struts.action.ActionMapping;
04:
05: /**
06: * This custom action mapping is used by {@link LogoutAction}
07: * to get the parameter name for the logout request parameter.
08: * The parameter name can be set in the struts-config.xml file using
09: * <set-property property="requestParameterName" value="logout"/>
10: */
11: public class LogoutActionMapping extends ActionMapping {
12: private String requestParameterName;
13:
14: public String getRequestParameterName() {
15: return requestParameterName;
16: }
17:
18: public void setRequestParameterName(String requestParameterName) {
19: this.requestParameterName = requestParameterName;
20: }
21: }
|