浏览 1744 次
锁定老帖子 主题:为什么这样修改新密码错误??
该帖已经被评为新手帖
|
|
---|---|
作者 | 正文 |
发表时间:2007-11-15
<form action="PasswordUpdate.jsp" method="post"> <table cellSpacing=1 cellPadding=3 width=100% bgColor=#999999 border=0> <tr align=middle bgColor=#ffffff> <td width="160" align="right">请输入旧密码: </td> <td align="left"><input name="oldPassword" type="password" id="oldPassword"></td> </tr> <tr> <td align=right bgColor=#ffffff height=26>密 码: </td> <td align=left bgColor=#ffffff> <input name="newPassword" type="password" id="newPassword"></td> </tr> <tr> <td align=right bgColor=#ffffff height=26>确认密码: </td> <td align=left bgColor=#ffffff> <input name="rePassword" type="password" id="rePassword"></td> </tr> <tr align="center" bgcolor="#FFFFFF"> <td colspan="2"><input type="submit" name="Submit2" value="修改"></td> </tr> </table> </form> 修改密码页面是这样的: <% ApplicantUserService userService = new ApplicantUserService(); ApplicantUser user = new ApplicantUser(); String password=(String) request.getParameter("rePassword"); user.setPasswd(password); if(userService.updateUserBaseByUserName(user)) { %> <script language="JavaScript"> window.location.replace("Detail.jsp"); </script> <% } else { throw new Exception("更新出错"); } %> 为什么回出错呢?报异常: 异常信息如下所示 com.ibatis.dao.client.DaoException: Failed to update - id [updateUserByUserName] - parameterObject [com.szxr.domain.ApplicantUser@ed32c4]. Cause: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/szxr/persistence/sqlmapdao/sql/ApplicantUser.xml. --- The error occurred while applying a parameter map. --- Check the updateUserByUserName-InlineParameterMap. --- Check the parameter mapping for the 'email' property. --- Cause: java.sql.SQLException: 无效的列类型 Caused by: java.sql.SQLException: 无效的列类型 Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/szxr/persistence/sqlmapdao/sql/ApplicantUser.xml. --- The error occurred while applying a parameter map. --- Check the updateUserByUserName-InlineParameterMap. --- Check the parameter mapping for the 'email' property. --- Cause: java.sql.SQLException: 无效的列类型 Caused by: java.sql.SQLException: 无效的列类型 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |