Could not find action or result

Could not find action or result   com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn(CommonsLogger.java:49)
No result defined for action cn.gxw.dmis.sysadmin.adminmgr.action.AddAdminAction and result input
	at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:364)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)


 
是因为在jsp页面里面我的

<tr>
       <td>类型:</td>
       <td>
              <select name="userGroup" id="userGroup">
               <option value="G_ADMIN">管理员组</option>
               <option value="G_ADMIN_FINANCE">财务管理员组</option>
               <option value="G_ADMIN_NEWS">新闻管理员组</option>
              </select>
       </td>
      </tr>

 name的名字是 userGroup  和

 

User user = new User();
		UserGroup userGroup = new UserGroup();
		User adminUser = WebUtil.getUser(request);

		// 必须用户名和邮箱都不存在才能注册
		if (userService.checkUsername(userLogin.getLogin()) == false
				&& userService.checkUserEmail(email) == false) {

			user.setStatus(UserStatus.NORMAL);
			user.setName(name);
			user.setEmail(email);
			userGroup.setId(request.getParameter("group"));
			user.setUserGroup(userGroup);
			user.setResellerUser(adminUser);
			user.setCreateUser(adminUser.getId());
			user.setCreateTime(new Date());
			this.userService.save(user);

 重复了,所以报错

 

把select的name给改成group ,OK    添加成功

你可能感兴趣的:(jsp)