Some new functions have been added to the latest Servlet version 2.4 of J2EE1.4. The following describes the main common functions.
1. XML Schema definition Web query deployment description file
In versions earlier than Servlet 2.3, DTD is used as
A set of Web components such as Servlets, JSP, and JavaBean installed on a server with a specific URL namespace such as/myapplication constitute a Web application, every Web application is the same JVM), the container will have a background object,
The following code shows the basic structure of a simple Servlet. The Servlet processes GET requests. If you are not familiar with HTTP, it can be viewed as a request sent by the browser when a user enters a URL in the browser address bar, clicks a
Read Request headers in Servlet
It is very convenient for the Servlet to read the HTTP header. You only need to call the getHeader method of HttpServletRequest. If the specified header information is provided in the customer request, getHeader
Install your Servlet and JSP page
Compile your Servlets and you need to set CALSSPATH. For example, if you use JRun and JDK1.3 in windows, you can open a command line and execute the following command:C: \ set CALSSPATH = C :\\ lib \ ext \ servlet.
This article introduces the JSP and JavaBean models. Many people may not know about the JSP and JavaBean models. It does not matter. After reading this article, you will certainly have a lot of GAINS. I hope this article will teach you more.
Web
5) configure system variablesVi/etc/profile // edit/etc/profileAdd at the end of the file:PATH = "$ PATH:/usr/local/jakarta-tomcat/bin:/usr/local/jdk1.2.2/bin:/usr/local/jdk1.2.2/jre/bin"JAVA_HOME =/usr/local/jdk1.2.2Export JAVA_HOMEJRE_HOME
VII. jsp connection to PostgreSQL database Testmysql. jsp is as follows:String url = "jdbc: postgresql: // localhost/soft"// Soft is your database nameString user = "myuser ";String password = "mypassword ";Connection conn = DriverManager.
Custom tag locationAttribute.Indicates the attribute name contained in the tag.True indicates that this attribute is required.OrFalse indicates that this attribute is not required.The implicit value is false.True indicates that the value of this
The following example shows how to use javascript to change the applet status and call the method in the applet in javascript.1. applet source code (tmin_JS2.java)// ImportImport java. awt. Graphics;Import java. awt. Event;// LiveConnect... for
Iis web is favored by many people because of its simple management and support for ASP. This section describes how to use resin to enable IIS to support jsp and servlet.1. install and configure iis and resin1.1 separately so that both of them can
/** This is the class used to manage user information.The file name is onLineUser. java.Welcome to javajia (http://www.javajia.com), made by yuking. 2001.1.1*/Import javax. servlet. http .*;Import javax. servlet .*;Import java. util .*;Public class
Servlet and filter are common technologies used in J2EE development. They are easy to use and easy to configure.
It is estimated that most of my friends are directly configured and used without having to worry about specific details. I encountered a
1. Java Servlet and Its Features
Servlet is the answer of Java technology to CGI programming. Servlet programs run on the server to dynamically generate Web pages. Compared with traditional CGI and many other CGI-like technologies, Java Servlet is
The Web Application Server generates various events, such as Web Container startup events, session expiration events, and request arrival events. We have already elaborated on the interfaces of these events in JBuilder 2005 actual JSP development.
The relationship between Servlet and Applet is generally indirect, that is, the page request is sent to the Servlet by the browser. As a response, the Servlet sends the HTML document generated by the result to the browser. In many cases, it is
[Preface]:Image verification is often used for registration and posting. I have written this article in jsp for your reference.Com. sun. imageIt is not a java standard package. You need to download it separately. The address
I. DescriptionUsing proficiency, proficiency, familiarity, and understanding in this article marks your mastery of a technology.Proficient: 85% or more technical points of the technology, more than two years of use of the technology, and the use of
TaglibTags are defined and distributed in a structure called the tag library. A tag library is a set of metadata and classes:1. Tag Processor: Java class that implements the custom tag function.2. Tag additional information (TEI): provides edge
Why is there Java? Why is there. NET?
Some people say that Java is generated across Windows and UNIX. Is that true?
Sun has its own operating system solaris and plays a role in the high-end market. In the early stages of Java Development, Windows
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service