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

📄 productform.java

📁 struts的一些用的书籍
💻 JAVA
字号:
package app10c.form;

import java.util.ArrayList;
import org.apache.struts.util.LabelValueBean;
import org.apache.struts.action.ActionForm;

public final class ProductForm extends ActionForm {
  private int category;
  		
	public void setCategory (int category) {
		this.category = category;
	}	
	public int getCategory () {
		return category;
	}	
	
	public ArrayList getCategoryList() {
 	  ArrayList categoryList = new ArrayList(3);
 	 	categoryList.add(new LabelValueBean("Computers", "1"));
 	  categoryList.add(new LabelValueBean("Cameras", "2"));
 	 	categoryList.add(new LabelValueBean("Video recorders", "3"));
	  return categoryList;
	}
}

⌨️ 快捷键说明

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