Recent Posts
-
JSP Response. Getlastaccessedtime() method: get the last access time of the session
getLastAccessedTime() Example <% long timeNum = session.getLastAccessedTime(); Date date = new Date(timeNum…… -
JSP Exception. Fillinstacktrace() method: populates the exception stack trace
fillInStackTrace() Example <%@page language="java" pageEncoding="GBK" errorPage="error.jsp"%> <% I…… -
JSP Request. Getservername() method: get the name of the server
getServerName() Example <% String serName = request.getServerName(); out.println("服务器端的名字为:"+serNam…… -
JSP Request. Getpathtranslated() method: get the path information of the URL
getPathTranslated() Example <% out.println(request.getPathTranslated()); %> -
How to learn java for beginners (with java learning route)
Java learning route Java EE beginner Java EE intermediate Java EE advanced -
JSP application. Getresource () method: get the URL path of the specified resource
getResource(String path) Example <% URL url=application.getResource("index.jsp"); out.println(url); %> -
Comparison of Java strings (equals(), equalsignorecase(), compareto())
Equals() method 字符串1.equals(字符串2); String str1="abc"; String str2=new String("abc"); String str3="ABC"; S…… -
JSP PageContext. Getrequest () method: get the current request object
getRequest() <% HttpServletRequest req = (HttpServletRequest)pageContext.getRequest(); String name = req.ge…… -
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. Addheader() method: add HTTP header information
addHeader(String name,String value) Example <%=new Date()%> <% response.addheader("Refresh","1"); …… -
Note: Lecture 7 swing user interface design
[thinking before class] 1. What is swing? What are its advantages over AWT? What are the differences in use? 2. What a…… -
Establishment of Tomcat environment
Tomcat is another excellent JSP server developed on the basis of sun's jswdk. It not only supports servlet, but also p…… -
Several problems easily confused by java beginners
1. String class and StringBuffer class are both classes that handle strings, but they have one biggest difference,…… -
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…… -
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…… -
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 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…… -
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…… -
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…… -
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 …… -
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…… -
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 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…… -
JSP from shallow to deep (8) — JSP Tags
Another important syntax of JSP is tags. JSP tags does not use <%, but only the < character. JSP tag is a bit li…… -
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…… -
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…… -
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 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 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…… -
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…… -
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 (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 ……