日期:2014-05-18  浏览次数:20856 次

求教关于jsp/servlet的问题(请高手指点一下,不胜感谢)
<%@   page   language= "java "   contentType= "text/html;   charset=UTF-8 "
        pageEncoding= "UTF-8 "%>
<%@   taglib   uri= "WEB-INF/struts-html.tld "   prefix= "html "   %>
<%@   taglib   uri= "WEB-INF/struts-logic.tld "   prefix= "logic "   %>
<%@   taglib   uri= "WEB-INF/struts-bean.tld "   prefix= "bean "   %>
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN ">
<html>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=UTF-8 ">
<title> 更新用户 </title>
</head>
<body>
<b> 更新用户: </b>
<html:form   action= "manageuser.do?mode=updateSave "   method= "post "   >  
<table   cellspacing= "0 "   cellpadding= "0 "   border= "0 "   align= "left ">
<tr>
<td> 密码: </td>
<td> <html:text   name= "userForm "     property= "updateUser.password "   > </html:text> </td>
</tr>
<tr>
<td> 角色: </td> <td> <html:text   name= "userForm "   property= "updateUser.role "> </html:text> </td>
</tr>
<tr>
<td> 姓名: </td> <td> <html:text   name= "userForm "     property= "updateUser.name "> </html:text> </td>
</tr>
<tr>
<td> 电话: </td> <td> <html:text   name= "userForm "     property= "updateUser.tel "> </html:text> </td>
</tr>
<tr>
<td> 电子邮件: </td> <td> <html:text   name= "userForm "   property= "updateUser.email "> </html:text> </td>
</tr>
<tr>
<td> 描述: </td> <td> <html:text   name= "userForm "   property= "updateUser.description "> </html:text> </td>
</tr>

<tr>
<td> <html:submit   property= "Save "     value= "确定 "/> <input   type= "button "   value= "取消 "   onclick= "location.href= '/UserManageSystem/manageuser.do ' ">
</td>
</tr>

</table>

</html:form>


</body>
</html>
这个是update_user.jsp布面首先它会显示选择的user信息。然后可以进行修改。
但是点保存出现在以下错误   。
javax.servlet.ServletException:   BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:805)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)