java Web
Hacker天使马晓培
目标明确生机勃勃地活出欣然的自己!
展开
-
Servlet 生命周期
Servlet 的生命周期是由 servlet 的容器来控制的。分为 3 个阶段:初 始化阶段、运行阶段、销毁阶段。 初始化阶段 1、初始化阶段步骤:*Servlet 容器加载 servlet 类,把它的. Class 文件中的数据读到内存 中。 *Servlet 容器创建 servletConfig 对象。servletConfig 对象包含了 servlet 的初始化原创 2012-05-03 16:01:37 · 752 阅读 · 0 评论 -
<logic:forward>与<logic:redirect>区别
1 .属于程序内部访问,一次请求http://localhost:9999/strutsdemo 2 .重定向,发生两次请求 http://localhost:9999/strutsdemo/RegUserUI.htm 1. index.jsp中包含时,IE地址显示的是http://localhost:9999/strutsdemo,f转载 2012-12-07 15:00:10 · 1652 阅读 · 0 评论 -
Servlet问题
1、访问某Servlet时报错如下: type: Status reportmessage: HTTP method GET is not supported by this URLdescription: The specified HTTP method is not allowed for the requested resource (HTTPmethod GET原创 2013-03-09 18:36:59 · 1077 阅读 · 0 评论