1. when the println () method is used for objects of the String type, if the object is null, null is printed instead of NullPointerException, which may lead to the illusion of reference, subsequent operations on strings may cause problems.2.
I wanted to use ajax (static dynamic website) to upload a non-refreshing file. Later I found it difficult to implement it. After searching for it online for a long time, I finally found a "pseudo ajax (static dynamic website) "implementation method,
String agent = request. getheader ("user-agent ");Stringtokenizer st = new stringtokenizer (agent ,";");St. nexttoken ();// Obtain the user's browser nameString userbrowser = st. nexttoken ();// Obtain the user's OS nameString useros = st. nexttoken
ZZzzz ~ May wind
Src: file path, which can be either an HTML file or a text file or an ASP file;Width and height: the width and height of the "picture-in-picture" area;Scrolling: when the specified HTML file of SRC is not displayed in the specified
The following example shows how to access a student information table:
First, create the access database file student. mdb, open the Table Designer, enter the field name and data type, and set the primary key:
Second, establish test data:
Nowadays, jsp (the preferred choice for SUN enterprise-level applications) has been applied by more and more people to the Development of background programs and the production of dynamic web pages, today, we will introduce how to use jsp (the
Method 1: cache data in the servlet init () methodAfter the application server initializes the servlet instance and provides services for client requests, it will call the init () method of the servlet. In the lifecycle of a servlet, The init ()
JSP script ElementJSP script elements can be used to embed Java code into JSP pages. These Java code will appear in the Servlet generated by the current JSP page, so that JSP can separate static content from dynamic content. Script elements include:1
Iv. File Download 1、download link page download.html The page source code is as follows:
download click to download
2. Download and processing page do_download.jsp (preferred for SUN Enterprise
Install jsp in win2000 (preferred for SUN Enterprise applications)
First go to www.sun.com to download j2sdk1.4.7.
We will install java in the C: j2sdk directory. Wait...
Now the java sdk is installed. Right-click my computer and choose "properties">
Implement calendar on jsp (preferred for SUN Enterprise Applications) web pages
Jsp (preferred for SUN Enterprise applications) and calendar
calendar /* Declare the variable */String [] months = {"January", "February", "March", "l", "May", "June ","
Compared with ASP and PHP, Servlet/jsp (preferred for SUN enterprise-level applications) has a high execution efficiency due to its multi-threaded operation. Servlet/jsp (preferred for SUN Enterprise Applications) is executed in multi-threaded mode
Create table test (test1 varchar (20), test2 varchar (20)Write a test record to the table.Now let's start our jsp (first choice for SUN Enterprise applications) and database journey.TestOracle (large website database platform). jsp (preferred for
1. jsp (preferred for SUN Enterprise Applications) is short for Java Server Pages.
2. Web applications developed using jsp (the preferred choice for SUN Enterprise Applications) are cross-platform.
3. jsp (preferred for SUN Enterprise Applications)
Today I learnedJsp (preferred for SUN Enterprise applications). What is an object?In object-oriented programming, an object is a variable composed of operations and data as a complete object.
Objects are based on specific models. In objects,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service