spring配置action bean的问题
SSH遇到个问题。 我定义了个action,里面有个list,然后list是通过xml赋值的
spring xml配置
<bean id="PageForwardAction" class="action.PageForwardAction" scope="singleton"> <property name="menuRule"> <list> <value>1</value> <value>2</value> <value>3</value> </list> </property></bean>
public class PageForwardAction extends ActionSupport{ private List menuRule = new ArrayList(); public PageForwardAction() { System.out.println("create new"); } public String pageForward() throws Exception { return SUCCESS; } public List getMenuRule() { return menuRule; } public void setMenuRule(List menuRule) { this.menuRule = menuRule; }}