中国开发网: 论坛: 发牢骚: 贴子 246834
nostalgic: 日
package Customer;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class customerAction extends Action {
public ActionForward execute(ActionMapping mapping,
HttpServletRequest request, HttpServletResponse response,
ActionForm form) {
customerForm f = (customerForm) form;
try {
customerBean bean = new customerBean();
bean.createCustomer(f.getCustomer());
} catch (Exception e) {
e.printStackTrace();
}
request.setAttribute("customer", f.getCustomer());
return (mapping.findForward("customerCreated"));
}
}

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录