`

Could not find action or result

    博客分类:
  • ssh
JSP 
阅读更多
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    添加成功

分享到:
评论

相关推荐

    JAVA错误文档[归纳].pdf

    2. **警告:Could not find action or result** 这个错误表示在Struts框架中找不到对应的动作映射。确保你的`struts.xml`文件中已经定义了相应的行为映射,例如`&lt;action name="attent" class=...

    JAVA错误文档.pdf

    1. Struts框架错误处理:文档中提到的“Dispatcher initialization failed”和“Could not find action or result”等信息表明Struts框架在初始化过程中遇到了问题。这通常发生在web.xml配置不当,或者struts.xml...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - FIX: The result rectangle incorrectly calculated in the TFlexText.GetRefreshRect method. - FIX: Added FPaintCache.rcPaint cleanup in the TFlexPanel.WMPaint method. Now it is possible to define is ...

    OMG 业务动机模型 V1.3 英文版

    ’ that is, what result(s) the approach is meant to achieve. Sometimes it is difficult to uncover such motivation, especially in operations that have been going on for some time. All too often it ...

    CSharp英语

    Although "Prisoner" does not have a direct correlation with C# programming, it can be related to concepts such as "constrained execution environments" or "jailbreaking" in software development ...

    微软内部资料-SQL性能优化3

    Key range locks are similar to row locks on index keys (whether clustered or not). The locks are placed on individual keys rather than at the node level. The hash value consists of all the key ...

    曲线拟合工具CurveExpert 1.0

    point not being scaled or translated. Fixed. + A constant starting with a decimal (eg, .25) caused CurveExpert to bomb (when defining a user model). This has been fixed so that these constants ...

    php.ini-development

    directive because it is not set or is mistyped, a default value will be used. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, ...

    a project model for the FreeBSD Project.7z

    This is synonymous with deliverable, that is defined as “any measurable, tangible, verifiable outcome, result or item that must be produced to complete a project or part of a project. Often used ...

    Java邮件开发Fundamentals of the JavaMail API

    the ability to see how many new mail messages they have, are not supported by POP at all. These capabilities are built into programs like Eudora or Microsoft Outlook, which remember things like the ...

    高频词800词版本 342

    在例句中,"Positive thinking and action result in success.",表示积极的思想和行动会导致成功。 11. practical [præktɪkəl]:形容词,意思是实用的或实际的。在例句中,"The HUNCH program has an impact on...

Global site tag (gtag.js) - Google Analytics