Java
-
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 Page. Hashcode () method: returns the hash code value of the object
hashCode() Example <% out.print(page.hashCode()); %> -
JSP Exception. Initcause() method: sets the exception information of initialization
initCause(Throwable cause) Example <%@page language="java" pageEncoding="GBK" errorPage="error.jsp"%> <%…… -
JSP Out. Getremaining () method: get the remaining space of the buffer
getRemaining() Example <% int size = out.getRemaining(); out.println("JSP页面的剩余缓冲区大小为:"+size)…… -
JSP Request. Getserverpath() method: get the file path of the page requested by the client
getServletPath() Example <% String path = request.getServletPath(); out.println("访问的页面文件的路径为:"+p…… -
JSP Response. Adddateheader() method: add the date header information of the corresponding name
addDateHeader(String name,long date) Example <% long date = System.currentTimeMillis(); response.addDateHea…… -
Java Set. Add() method: adds an object to the set collection
add(E e) Example public static void main(String[] args){ Set set = new HashSet(); //定义Set集合对象 set.a…… -
JSP Request. Getrequestedsessionid() method: get the session ID value of the website visited by the client
getRequestedSessionId() Example <% out.println(request.getRequestedSessionId()); %> -
JSP application. Removeattribute() method: removes the specified attribute
removeAttribute(String name) Example <% application.setAttribute("user","lzw"); application.removeAttribute…… -
Java Connection. Commit() method: commit the transaction
commit() Example Connection conn = …… //省略部分代码 conn.setAutoCommit(false); //先将事务设为手动提交 Statement…… -
What is a URL? And URL class and urlconnection class
URL concept protocol://resourceName http://www.sun.com/ 协议名://主机名 http://localhost:8080/Test/admin/logi…… -
JSP Request. Getrequesturi () method: get the relative path of the website accessed by the client
getRequestURI() Example <% String p = request.getRequestURI(); out.println("访问的URI路径为:"+p); %> -
JSP Out. Clear() method: clear the data in the buffer
clear() Example <% out.println("C语言中文网"); out.clear(); %> -
JSP Response. Getcharacterencoding () method: get the character encoding type of the response
getCharacterEncoding() Example <% String encode = response.getCharacterEncoding(); out.println("响应客户端…… -
JSP application. Getattributenames() method: get all attribute names
getAttributeNames() Example <% Enumeration names = application.getAttributeNames(); while(names.hasMoreElem…… -
Java connection string
Using join operators Example 1 public static void main(String[] args) { int[] no=new int[]{501,101,204,102,334…… -
JSP Request. Getremoteaddr() method: get the IP address of the requesting client
getRemoteAddr() Example <% String p = request.getRemoteAddr(); out.println("客户端的IP地址为:"+p); %> -
JSP Out. Print () method: output data to JSP page
Grammar 1 print(boolean b) Example <% out.print(3>2); %> Grammar 2 print(char c) Example <% …… -
JSP Request. Getquerystring() method: get query string
getQueryString() Example <a href="https://www.jb51.ccindex.jsp?JavaCore">以Get方法发送的查询字符串</a>&l…… -
JSP application. Getattribute () method: get attribute value
getAttribute(String name) Example <% application.getAttribute("user"); %> Typical application <body&g…… -
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…… -
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…… -
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…… -
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…… -
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 …… -
Java character set encoding
1. General This paper mainly includes the following aspects: basic coding knowledge, Java, system software, URL, tool …… -
Note: Lecture 8 Java network programming
Think before class 1 What is TCP / IP protocol? 2. What are the two transmission protocols of TCP / IP and what ar…… -
JSP from simple to deep (12) — form editing
For example, the flag library from the blazix server cannot be used in your system environment, so what about not usin…… -
JSP from simple to deep (6) — JSP declaration
Now the JSP you write will become a class definition. All the scriptlets you write should be placed in a method of thi…… -
JSP from shallow to deep (9) — JSP sessions
On a classic website, visitors can browse several web pages and perform some interactive behavior. If you are writing …… -
JSP from shallow to deep (11) — tag library
JSP 1.1 proposes a method of extending JSP flag, which is named "flag library". These libraries allow additional flags…… -
Feel the characteristics of Java data object JDO 2.0 query language (1)
The improvement of query language is jdo2 0 specification. This paper expounds jdo2 from a higher level Some new featu……
