Methods Summary |
---|
private void | addItem(java.lang.String name)
v.addElement(name);
|
public java.lang.String[] | getItems()
String[] s = new String[v.size()];
v.copyInto(s);
return s;
|
public void | processRequest(javax.servlet.http.HttpServletRequest request)
// null value for submit - user hit enter instead of clicking on
// "add" or "remove"
if (submit == null)
addItem(item);
if (submit.equals("add"))
addItem(item);
else if (submit.equals("remove"))
removeItem(item);
// reset at the end of the request
reset();
|
private void | removeItem(java.lang.String name)
v.removeElement(name);
|
private void | reset()
submit = null;
item = null;
|
public void | setItem(java.lang.String name)
item = name;
|
public void | setSubmit(java.lang.String s)
submit = s;
|