public class CustomerUpdateAction extends BasicAction { public void execute(ActionMapping map, Object ob, HttpServletRequest req,
HttpServletResponse res) {
List<Customer> lis = (List<Customer>) ob;
这些语句是要做什么? (项目中有其他包) 什么意思
HttpServletResponse res) {
List<Customer> lis = (List<Customer>) ob;
这些语句是要做什么? (项目中有其他包) 什么意思
第二,三行 类的一个方法
第四行 把一个Object对象强制类型转换
其中
ActionMapping map, Object ob, HttpServletRequest req,
HttpServletResponse res 是页面可能要传递有用的参数至于
List<Customer> lis = (List<Customer>) ob;可能是传递多个 customer、 对象吧 我不敢确定