⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getaccountlistaction.java

📁 Struts+Spring开发
💻 JAVA
字号:
package org.ssi.action;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.ssi.dto.AccountDTO;

import com.opensymphony.xwork2.ActionSupport;

public class GetAccountListAction extends ActionSupport {
	private Collection accountDTOList;

	public Collection getAccountDTOList() {
		return accountDTOList;
	}

	public void setAccountDTOList(List AccountDTOList) {
		this.accountDTOList = AccountDTOList;
	}

	public String execute() throws Exception {
		accountDTOList = new ArrayList();
		for (int i = 0; i < 10; i++) {
			AccountDTO accountDTO = new AccountDTO();
			accountDTO.setUserID(Integer.toString(i));
			accountDTO.setFirstName("AccountDTO" + i);
			accountDTO.setPhone("41550"+i);
			System.out.println(accountDTO);
			accountDTOList.add(accountDTO);
		}

		return SUCCESS;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -