摘要:
1.说出Servlet的生命周期。Servlet生命周期有三个方法 init()方法: 实例化Servelet对象后调用的方法。 service()方法:分发客户端请求到对应的请求类型方法。 destroy()方法:Servlet实例销毁前调用的方法。 2.forward和redirect的区别.1 阅读全文
摘要:
1、通过request获取; HttpServletRequest request = ServletActionContext.getRequest(); String pid = request.getParater("Pid");2、在action中分别定义表单的属性,然后set,get方法, 阅读全文