通过配置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>
<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>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货