package org.jie.demo;
import org.jie.server.action.StandardAction; import javax.servlet.http.HttpServletRequest;
//实现一个加法运算
class AddAction extends StandardAction { public Object process(HttpServletRequest request, Object arg1) throws Exception { Object[] args = (Object[])arg1; return ((Integer)args[0]).add((Integer)args[1]); } } |