public ActionErrors validate 中的错误提示是: type Status report message No input attribute for mapping path /helloAction description The server encountered an internal error (No input attribute for mapping path /helloAction) that prevented it from fulfilling this request.if (userName.equalsIgnoreCase(badUserName)) {中的错误是: description The server encountered an internal error () that prevented it from fulfilling this reques
第一个地方,错误指出你的Action Mapping里面没有定义input属性,因为你后面写了这句 return (new ActionForward(mapping.getInput()));
type Status report
message No input attribute for mapping path /helloAction
description The server encountered an internal error (No input attribute for mapping path /helloAction) that prevented it from fulfilling this request.if (userName.equalsIgnoreCase(badUserName)) {中的错误是:
description The server encountered an internal error () that prevented it from fulfilling this reques
return (new ActionForward(mapping.getInput()));
errors.add("username",new ActionMessage("hello.no.username.error"));