
JavaEE
技术搬砖工
技术搬砖工交流微信: monky2020
展开
-
JavaEE学习之路-Servlet Lifecycle
The lifecycle of a servlet is controlled by the container in which the servlet has been deployed. When a request is mapped to a servlet, the container performs the following steps.If an instance翻译 2014-08-25 23:28:32 · 872 阅读 · 0 评论 -
如何为MyEclipse添加XML文档所使用的DTD
如何为MyEclipse添加XML文档所使用的DTD,从而使用Content Assistant可进行代码提示呢?解决办法1、打开MyEclipse,找到菜单栏“Window”---->“Preferences(首选项)”;2、在左侧导航菜单栏找到“MyEclipse”---->“Files and Editors”-转载 2014-09-29 08:40:43 · 1612 阅读 · 0 评论 -
用servlet实现分页功能
[java] view plaincopy/*=====================分页=============*/ int pageSize = 15; //一页显示的记录数 int pageNow = 1; //希望显示第几页 int rowCount = 0; //共有几条记录(查表) int pageCount = 0转载 2014-09-28 23:41:33 · 1025 阅读 · 0 评论 -
Interface ServletContext
javax.servlet Interface ServletContextpublic interface ServletContextDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type o翻译 2014-09-28 23:55:16 · 395 阅读 · 0 评论 -
getRequestDispatcher
getRequestDispatcherpublic RequestDispatcher getRequestDispatcher(String path)Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. ARequestDisp翻译 2014-09-28 23:50:11 · 937 阅读 · 0 评论 -
getServletPath方法
getServletPathjava.lang.String getServletPath()Returns the part of this request's URL that calls the servlet. This path starts with a "/" character and includes either the servlet name or a path t翻译 2014-09-27 16:50:37 · 2639 阅读 · 0 评论 -
struts2的工作原理
在struts2的应用中,从用户请求到服务器返回相应响应给用户端的过程中,包含了许多组件如:Controller、ActionProxy、ActionMapping、Configuration Manager、ActionInvocation、Inerceptor、Action、Result等。下面我们来具体看看这些组件有什么联系,它们之间是怎样在一起工作的。 (1转载 2014-09-27 23:20:07 · 405 阅读 · 0 评论 -
Servlet-Filter
javax.servlet Interface Filterpublic interface FilterA filter is an object that performs filtering tasks on either the request to a resource (a servlet or static content), or on the respon翻译 2014-09-27 16:46:01 · 1063 阅读 · 0 评论 -
Servlet小结
//register.htmlinsert item here!User:Password:interesting:Readingwritingsportexerciseclaming//LoginServletimport javax.servlet.Servlet;publi原创 2014-09-12 14:11:12 · 901 阅读 · 0 评论 -
JavaEE学习之路-Writing Service Methods
The service provided by a servlet is implemented in the service method of a GenericServlet, in the doMethod methods (where Method can take the value Get,Delete, Options, Post, Put, or Trace) of an翻译 2014-08-28 17:38:16 · 694 阅读 · 0 评论 -
JavaEE学习之路-Creating and Initializing a Servlet
Use the @WebServlet annotation to define a servlet component in a web application. This annotation is specified on a class and contains metadata about the servlet being declared. The annotated servlet翻译 2014-08-28 17:35:22 · 651 阅读 · 0 评论 -
JavaEE学习之路
What Is a Servlet?A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed by means of a request-response programming model. Although翻译 2014-08-25 23:17:12 · 673 阅读 · 0 评论 -
ServletContext
web容器在启动时,他会为每个web应用程序都创建一个对应的ServletContext对象,他代表当前web应用ServletConfig对象中维护了ServletContext获取ServletContext对象public class ServletDemo extends HttpServlet{//方法1this.getServletConfig.原创 2014-09-09 19:33:02 · 459 阅读 · 0 评论 -
JavaEE学习之路-Sharing Information
Web components, like most objects, usually work with other objects to accomplish their tasks. Web components can do so by doing the following.Using private helper objects (for example, JavaBeans翻译 2014-08-26 00:05:09 · 544 阅读 · 0 评论 -
Servlet声明周期小结
Servlet配置及生命周期方法关于Servlet容器:1.可以来创建Servlet并调用Servlet相关的生命周期的方法2.JSP,Filter,Listener,Tag...(都有Servlet容器管理,并运行,提供环境支持)3.Servlet生命周期的方法:(以下方法都是Servlet容器负责调用)3.1 构造器方法:第一次请求Servlet时创建Servlet的实例,原创 2014-10-21 12:05:50 · 1130 阅读 · 0 评论