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 添加成功
分享到:
相关推荐
在Myeclipse 8.5中用外带的tomcat时候,会因为JDK版本的问题出现Could not find the main class,按照上述文档的步骤就可以解决,我亲自体验过
Eclipse 编译时遇到错误could not find the main class,program will exit的解决方法
Could not find module 'D:\codna\Library\bin\geos_c.dll'Could not find module 'D:\codna\Library\bin\geos_c.dll'Could not find module 'D:\codna\Library\bin\geos_c.dll'
NULL 博文链接:https://liuenjian.iteye.com/blog/711927
Could not find Developer Disk Image"问题
百度飞桨遇到的问题,安装cuda不能启动,错误提示importError: Could not find 'cudnn64_7.dll'的解决。将压缩包内的文件对应放入cuda安装位置即可!
【故障解决】OGG-00446 Could not find archived log for sequence.pdf
WIN7下运行Jar文件提示Could not find the main class
xcode Could not find Developer Disk Image 11.4 (15F5061c) 亲测可用 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 记得一定要重启Xcode才生效.
xcode 、could not find developer disk image、真机测试、ipa打包
xcode Could not find Developer Disk Image
解决Xcode在ipad/iphone9.2系统真机测试时出现could not find developer disk image问题,只要拷贝这个文件到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动...
打包找不到 zkclient COULD NOT FIND zkclient-0.11 解压后将jar包与pom文件都放在.m2\repository指定路径下
打包找不到 jcommander COULD NOT FIND jcommander-1.48 解压后将jar包与pom文件都放在.m2\repository指定路径下
主要介绍了Tensorflow安装问题: Could not find a version that satisfies the requirement tensorflow,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来...
打包找不到 RING-CORES问题 COULD NOT FIND cglib:cglib-2.2.2 解压后将jar包与pom文件都放在.m2\repository指定路径下
打包找不到 stream COULD NOT FIND stream-2.5.2 解压后将jar包与pom文件都放在.m2\repository指定路径下
打包找不到 classworlds问题 COULD NOT FIND classworlds-1.1-alpha-2 解压后将jar包与pom文件都放在.m2\repository指定路径下
NULL 博文链接:https://yintech.iteye.com/blog/374842
【SpringBoot】Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster报错明细问题解决后记 报错明细 IDEA SpringBoot集成hadoop运行环境,,本地启动项目,GET请求接口触发...