1 25 26 package org.objectweb.jonas.webapp.jonasadmin.common; 27 28 import java.util.ArrayList ; 29 30 import javax.servlet.http.HttpServletRequest ; 31 32 import org.apache.struts.action.ActionForm; 33 import org.apache.struts.action.ActionMapping; 34 35 38 public class ItemsForm extends ActionForm { 39 40 42 private String action = null; 44 private String [] selectedItemsArray = new String [0]; 45 private ArrayList selectedItemsList = new ArrayList (); 46 47 49 55 public void reset(ActionMapping mapping, HttpServletRequest request) { 56 selectedItemsArray = new String [0]; 57 } 58 59 61 public String [] getSelectedItemsArray() { 62 return selectedItemsArray; 63 } 64 65 public void setSelectedItemsArray(String [] selectedItemsArray) { 66 this.selectedItemsArray = selectedItemsArray; 67 } 68 69 public String getAction() { 70 return action; 71 } 72 73 public void setAction(String action) { 74 this.action = action; 75 } 76 77 public ArrayList getSelectedItemsList() { 78 return selectedItemsList; 79 } 80 81 public void setSelectedItemsList(ArrayList selectedItemsList) { 82 this.selectedItemsList = selectedItemsList; 83 } 84 85 86 } | Popular Tags |