通过配置struts-config.xml文件中的<action-mappings></action-mappings>标记如  <form-beans>
    <form-bean name="testbean"
               type="org.apache.struts.webapp.exercise.TestBean"/>
  </form-beans>
<action-mappings>    <action    path="/html-link"
               type="org.apache.struts.webapp.exercise.HtmlSettersAction"
               name="testbean"
              scope="session"
           validate="false">
      <forward name="input"                path="/html-link.jsp"/>
    </action>
  </action-mappings>