马老师说过,方法的重写一定要去父类拷贝。
今天深深的明白了这个道理。
今天写了个struts练习小项目。
写个控制器的类要继承Action类复写execute()
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request
HttpServletResponse response) throws Exception {
return null;
}
由于我是手写的,结果形参的顺序没写对。
恶心了我一下午。
还有异常的方法也要一样。