Java
-
JSP Request. Getquerystring() method: get query string
getQueryString() Example <a href="https://www.jb51.ccindex.jsp?JavaCore">以Get方法发送的查询字符串</a>&l…… -
How to learn java for beginners (with java learning route)
Java learning route Java EE beginner Java EE intermediate Java EE advanced -
Java TCP communication: Java ServerSocket class and socket class
ServerSocket class Construction method of ServerSocket try { ServerSocket serverSocket=new ServerSocket(8111);…… -
Java stop (terminate) thread detailed version
Unstoppable thread Example 1 package ch14; public class MyThread13 extends Thread { @Override public vo…… -
JSP application. Getresourceasstream() method: returns the input stream object of the specified resource
getResourceAsStream(String path) Example <% InputStream in = application.getResourceAsStream("index.jsp"); %&…… -
JSP PageContext. Removeattribute() method: removes the attribute from the specified range object
removeAttribute(String name,int scope) Example <% pageContext.removeAttribute("user",pageContext.APPLICATION_S…… -
Java pause / suspend thread (suspend()) and resume thread (resume())
Suspend() and resume() methods package ch14; public class MyThread21 extends Thread { private long i=0; …… -
Java trim() method: remove the spaces before and after the string
trim() Example public static void main(String[] args){ String strCom = "JAVA编程词典"; //定义字符串 Strin…… -
JSP Out. Clearbuffer () method: clear the data in the buffer and output it to the client
clearBuffer() Example <% out.println("C语言中文网"); out.clearBuffer(); %> -
JSP Out. Getremaining () method: get the remaining space of the buffer
getRemaining() Example <% int size = out.getRemaining(); out.println("JSP页面的剩余缓冲区大小为:"+size)…… -
JSP application. Getattribute () method: get attribute value
getAttribute(String name) Example <% application.getAttribute("user"); %> Typical application <body&g…… -
JSP Request. Getpathtranslated() method: get the path information of the URL
getPathTranslated() Example <% out.println(request.getPathTranslated()); %> -
JSP Out. Flush() method: clear the current buffer
flush() Example <% out.println("C语言中文网"); out.flush(); %> -
JSP Out. Isautoflush() method: judge whether the buffer is refreshed automatically
isAutoFlush() Example <% int size = out.getRemaining(); out.println("JSP页面是否自动刷新:"+out.isAutoFl…… -
The role of the Java isalive() method
Example 1 package ch14; public class MyThread08 extends Thread { @Override public void run() { …… -
Jsp: plugin: load tag
Example 1 <jsp:plugin type="applet"code="com.applet.MyApplet.class"codebase="/"> <jsp:fallback>加载Ja…… -
Java DriverManager. Getconnection() method: get database connection
Grammar 1 getConnection(String url) Example public Connection getConnection(){ Connection con=null; try{ …… -
Java tochararray() method: converts a string into a character array
tocharArray() Example public static void main(String[] args){ String strCom = "JAVA编程词典"; //定义字符串 …… -
JSP application. Getnameddispatcher() method: returns the requestdispatcher object according to the specified parameter name
getNamedDispatcher(String name) Example <% RequestDispatcher rd=application.getNamedDispatcher("test2"); rd…… -
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 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 …… -
The growth path of JSP programmers
1: Explain the use of mastery, proficiency, familiarity and understanding in this article to indicate your mastery of…… -
Java character set encoding
1. General This paper mainly includes the following aspects: basic coding knowledge, Java, system software, URL, tool …… -
JSP from shallow to deep (7) — JSP directives
In the previous tutorial, we have used java util. Date。 Some people will ask: why not just use import Java util.* And…… -
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…… -
Feel the characteristics of Java data object JDO 2.0 query language (3)
The query feature extended by manufacturers JDO manufacturers can provide jdoql with a variety of special query functi……