Java
-
JSP Response. Getoutputstream () method: get the output stream of the JSP response object
getOutputStream() Example <% ServletOutputStream os = response.getOutputStream(); os.write("<b>Java编…… -
JSP Response. Addinthead() method: add the int attribute of the corresponding name
addIntHeader(String name,int value) Example <% response.addIntHeader("Expires",10); %> -
Role of Java currentthread() method
Example 1 public class Run1 { public static void main(String[] args) { //调用currentThread()方法…… -
JSP PageContext. Handlepageexception() method: throw an exception
Grammar 1 handlePageException(Exception e) Example <%@page language="java" pageEncoding="GBK" errorPage="error.js…… -
JSP page instruction: page instruction
<%@page [language="java"] [contentType="mimeType;charset=CHARSET"] [import="{package.class|pageage.*},……"] [extends…… -
The role of the Java getid () method
package ch14; public class Test15 { public static void main(String[] args) { Thread runThread=T…… -
Basic knowledge of Java network programming
Network classification Network programming model Client / Server Mode Browser / Server Mode Network protocol IP protoc…… -
JSP Request. Getmethod () method: get the method that the client transmits data to the server
getmethod() Example <% String mName = request.getmethod(); out.println("表单提交请求使用的方法是:"+mName); …… -
JSP Response. Addcookie() method: add cookie object
addCookie(Cookie cookie) Example <% Cookie cookie = new Cookie("user","lzw"); response.addCookie(cookie); …… -
Java connection string
Using join operators Example 1 public static void main(String[] args) { int[] no=new int[]{501,101,204,102,334…… -
JSP PageContext. Getrequest () method: get the current request object
getRequest() <% HttpServletRequest req = (HttpServletRequest)pageContext.getRequest(); String name = req.ge…… -
JSP Request. Isrequestedsessionidvalid() method: Returns whether the session is valid
isRequestedSessionIdValid() Example <% out.println("Session是否有效"+request.isRequestedSessionIdValid()); %&…… -
Jsp: forward: request forwarding tag
The < jsp: param > sub tag is used to pass parameters to the dynamic target file. The key codes are as follows: …… -
Java Statement. Getgeneratedkeys() method: get the automatically generated key
getGeneratedKeys() Example Connection conn = …… //省略部分代码 Statement stmt = conn.createStatement(); //获取Sta…… -
Java lastindexof() method: returns the index position of the last occurrence
Grammar 1 lastIndexOf(int ch) Example String strCom = "abcdefg gfdecba"; int index = strCom.lastIndexOf("a"); Gramm…… -
JSP config. The getinitparameter () method gets the value of the initial parameter
getInitParameter(String name) Example <% String name = config.getInitParameter("fork"); out.println("parame…… -
Java Map. Keyset() method: get all the key names of the map set
keySet() Typical application public static void main(String[] args){ Map map = new HashMap(); //定义Map集合 …… -
Java Map. Isempty() method: judge whether the map collection object contains content
isEmpty() Example public static void main(String[] args){ System.out.println("创建Map集合对象"); Map map =…… -
JSP Request. Getremoteaddr() method: get the IP address of the requesting client
getRemoteAddr() Example <% String p = request.getRemoteAddr(); out.println("客户端的IP地址为:"+p); %> -
Note: Lecture 4 exception handling and I / O flow in Java
[thinking before class] 1. What are exceptions? What are the two exception handling mechanisms in Java? 2. What are th…… -
Note: Lecture 3 object oriented features in the Java language
[thinking before class] 1. What are objects? What are classes? What are packages? What are interfaces? What are intern…… -
Note: Lecture 6 Java threads and Java applets
[thinking before class] 1. What is a thread? What is the difference between it and a process? What is the applicable d…… -
JSP from simple to deep (3) — adding dynamic content through expressions
In our previous chapters, any HTML file can be transformed into a JSP file by changing its extension to jsp。 Of cours…… -
Here comes tiger j2se1 5 list of new features
Although the Java version has evolved from 1.0 to 1.4 2. However, the Java language itself has not changed much, only …… -
JSP from simple to deep (10) — beans and forms processing
Forms is a very common way to interact on websites. JSP makes form processing easier. The standard way to process form…… -
Note: Lesson 5 AWT graphical user interface design
[thinking before class] 1. Java language is a cross platform programming language, so how can the graphical user inter…… -
JSP from simple to deep (4) — scriptlets
In the above tutorial, we have learned how to embed Java expressions between <% = and% > character series in JSP…… -
Experience of integrating iis5 and tomcat5 with JK2 in Win32 environment
This article assumes that iis5 and tomcat5 have been installed JK2 download address: http://apache.linuxforum.net/dist…… -
Notes: Lecture 2 basic knowledge of Java language
summary: 4. Floating point (real) data real constant: ◇ decimal number form consists of numbers and decimal points, an…… -
Java learning from introduction to mastery
Java learning path (I), tool Article 1 and JDK (java development kit) JDK is the core of the whole Java, including Jav…… -
JSP from shallow to deep (2) — the first JSP
First JSP In fact, JSP simply puts Java into HTML web pages. You can change the extension of existing HTML pages from ……