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

只有注册用户登录后才能发表评论。


网站导航: