类
public class test1 extends ActionSupport{
private int type;
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public String execute(){
return SUCCESS;
}
}
xml
<struts>
<constant name="struts.devMode" value="true" />
<constant name="struts.i18n.encoding" value="GBK" />
<package name="test1" extends="struts-default" namespace="/having">
<action name="normal" class="com.sl.having.test1">
<result type="redirect">/r1.jsp?t=${type}</result>
</action>
</package>
</struts>