Struts中的问题,ActionErrors这个can't be resolved to a type怎么办public ActionErrors validate(ActionMapping mapping,HttpServletRequest request) {// TODO Auto-generated method stubActionErrors errors = new ActionErrors();//存放错误消息
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 09:33:26
Struts中的问题,ActionErrors这个can't be resolved to a type怎么办public ActionErrors validate(ActionMapping mapping,HttpServletRequest request) {// TODO Auto-generated method stubActionErrors errors = new ActionErrors();//存放错误消息
Struts中的问题,ActionErrors这个can't be resolved to a type怎么办
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
ActionErrors errors = new ActionErrors();//存放错误消息对象
if(this.username==null||this.username.length()
Struts中的问题,ActionErrors这个can't be resolved to a type怎么办public ActionErrors validate(ActionMapping mapping,HttpServletRequest request) {// TODO Auto-generated method stubActionErrors errors = new ActionErrors();//存放错误消息
建议你直接在验证用户名和密码的java类里继承ActionSupport,这样就可以直接使用ActionErrors了(this.addActionError("username","用户名错误").)