使用struts1框架,自定义的user继承ActionForm,
public class AddUserAction extends Action {
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
// TODO Auto-generated method stub
user u=(user)form;
UserDao ud=new UserDao();
ud.addUser(u);
return mapping.findForward("list");
}
}
使用ActionFrom获取的表单输入的user的用户名为什么不支持中文啊?中文用户名就是乱码
慕粉1336053190