[ECSide] ecside 删除,修改的问题
guoli83945
2007-12-20
我使用ecside在页面上修改数据时,修改一条没问题,修改多条就会报错.请
我用的struts2 ,修改代码如下: public String updateUser(){ HttpServletRequest request = ServletActionContext.getRequest(); HttpServletResponse response = ServletActionContext.getResponse(); String[] ids = request.getParameterValues("id"); String[] loginIds = request.getParameterValues("loginId"); String[] names = request.getParameterValues("name"); String[] emails = request.getParameterValues("email"); Map formMap = request.getParameterMap(); for(int i=0;i<ids.length;i++){ User vo = userService.get(new Long(ids[i])); vo.setLoginId(loginIds[i]); vo.setName(names[i]); vo.setEmail(emails[i]); userService.save(vo); } try { PrintWriter out = response.getWriter(); out.println("ec"); for(int i=0;i<ids.length;i++){ out.println(1); out.println(((String[])formMap.get(TableConstants.RECORDKEY_NAME))[i]); out.println(((String[])formMap.get("loginId"))[i]); } out.flush(); out.close(); } catch (Exception e) { e.printStackTrace(); } return null; } 抛出的异常为 [Log4J] ERROR [btpool0-7] Dispatcher.serviceAction(512) | Could not find action or result No result defined for action com.guoli.webapp.action.ecside.EcsideAction and res ult input - action - file:/D:/JavaWorkSpace/projectStencil/target/classes/struts .xml:132:76 at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(Default ActionInvocation.java:350) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionI nvocation.java:253) |
|
guoli83945
2007-12-22
好冷清啊,也没人回答......
|