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

📄 getbookaction.java

📁 struts2+ejb3.0+mysql+jboss+myeclipse的登录模块
💻 JAVA
字号:
package com.ouyang.ejb3.util;import java.util.ArrayList;import java.util.List;import com.opensymphony.xwork2.ActionSupport;@SuppressWarnings("serial")public class GetBookAction extends ActionSupport{	private String author;	private List<String> books = new ArrayList<String>();	public String getAuthor()	{		return author;	}	public void setAuthor(String author)	{		this.author = author;	}	public List<String> getBooks()	{		return books;	}	public String execute() throws Exception	{		System.out.println(author);		if (author.equals("#&26446;#&21018;"))		{			books.clear();			books.add("Spring2.0宝典");			books.add("轻量级J2EE企业应用实战");			books.add("基于J2EE的Ajax宝典");		}		else if (author.equals("Rod Johnson"))		{			books.clear();			books.add("Expert One-on-One J2EE Design and Development");		}		else if (author.equals("David Flanagan"))		{			books.clear();			books.add("JavaScript权威指南");		}		return SUCCESS;	}}

⌨️ 快捷键说明

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