Java
-
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); %> -
Comparison of Java strings (equals(), equalsignorecase(), compareto())
Equals() method 字符串1.equals(字符串2); String str1="abc"; String str2=new String("abc"); String str3="ABC"; S…… -
What is JSP? What are the advantages of JSP?
1) Precompiled 2) Separation of business codes 3) Component reuse 4) Cross platform -
JSP config. Getinitparameter() method: get the value of the initial parameter
getInitParameter(String name) Example <% String name = config.getInitParameter("fork"); out.println("parame…… -
JSP PageContext. Forward() method: forward page
forward(String relativeUrlPath) Example <% pageContext.forward("count.jsp"); %> Typical application &l…… -
Detailed explanation of Java two-dimensional array: Declaration and initialization of two-dimensional array, and obtaining the value of two-dimensional array
Create a 2D array type array[][]; type[][] array; int[][] age; char[][] sex; Initialize 2D array array=new typ…… -
JSP Request. Getcharacterencoding() method: returns the character encoding format
getCharacterEncoding() Example <% String encoding = request.getCharacterEncoding(); out.println("请求页面的…… -
JSP Request. Getauthtype () method: returns the authentication scheme name of the protection servlet
getAuthType() Example <% out.print(request.getAuthType()); %> -
JSP application. Getminorversion() method: returns the minimum version number of servlet API supported by the server
getMinorVersion() Example <% int i = application.getMinorVersion(); //获取服务器支持的Servlet API最小版本号 …… -
JSP Page. Hashcode () method: returns the hash code value of the object
hashCode() Example <% out.print(page.hashCode()); %> -
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 <% …… -
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 …… -
The growth path of JSP programmers
1: Explain the use of mastery, proficiency, familiarity and understanding in this article to indicate your mastery of……
