/* * Filename: MakeItemList.java * Created on: 5 January 2007, 16:49 * @author: Timothy Wonil Lee * @author: $Author$ * @version: $Revision$ * LastModified: $LastChangedDate$ * Location: $HeadURL$ * * Description: * * */ package conversionTest.action; import com.opensymphony.xwork.ActionSupport; import conversionTest.model.Item; import java.util.ArrayList; import java.util.List; public class MakeItemList extends ActionSupport { private List itemList; public String execute() { itemList = new ArrayList(); //itemList.add(new Item("9", "")); // this works ok //itemList.add(new Item("8", "")); // this works ok //itemList.add(new Item("03", "")); // this works ok //itemList.add(new Item("05", "")); // this works too! itemList.add(new Item("09", "")); // causes ognl.ExpressionSyntaxException: Malformed OGNL expression itemList.add(new Item("a8", "")); // causes ognl.ExpressionSyntaxException: Malformed OGNL expression itemList.add(new Item("a5", "")); // this doesn't work either! return SUCCESS; } public List getItemList() { return itemList; } public void setItemList(List itemList) { this.itemList = itemList; } }