Environment: FreeBsd 4.9 apache (the most popular WEB server platform on the Unix platform) 1.3.29 + php4.3.4 + MySQL (the best combination with PHP) 4 + ports Installation
First, synchronize ports with cvsup,
/Usr/local/bin/cvsup-g-L
A two-level drop-down box linkage is implemented on a jsp (preferred for SUN enterprise-level applications) page to read database data in real time. This method is very useful and can be used only in a small modification. Designed file: serch. jsp
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
Java has gradually warmed up in recent years. With the introduction of Java SE 5 and Java SE 6, the future of Java is even more brilliant. However, Java-based jsp (the preferred choice for SUN enterprise-level applications) has never been lifted
First, I will discuss the HttpConnection interface, which can be used to establish an Http connection.
HttpConnection Interface
Connected Limited Device Configuration (Limited connection Device Configuration. CLDC ). Provides a set of classes for
This is for upload
Import java. SQL .*;Import java. io .*;Import java. util .*;Import javax. servlet .*;Import javax. servlet. http .*;Import com. jsp (preferred for SUN Enterprise Applications) smart. upload .*;
Public class UpLoad extends
ArticleList
& nbsp; title author type click join time Int I;Int ipage = 5; // page unitInt allpage; // the total number of pages.Int pages; // The accepted page number variable.Int cpage = 1; // current pageInt spage; // start
Due to version changes, this article may not be universal.
Read this article firstSunAnd it is best to practice it.
Http://java.sun.com/developer/technicalArticles/xml (standardization is getting closer and closer)/WebAppDev3/
And knowJ2EE
12.1 jsp (preferred for SUN Enterprise Applications) script elementsJsp (preferred for SUN Enterprise Applications) script elements are used to insert Java code, which will appear in the Servlet generated by the current jsp (preferred for SUN
When developing website applications, use cookies to record users' emailsInformation is a commonly used method, and the use of cookies is also very simple.. If we want to get the cookie value in the jsp (preferred for SUN Enterprise Applications)
// Obtain the relative path and absolute path of the current file in Servlet and JSP. // In JSPOut. println ("absolute path corresponding to the root directory:" request. getRequestURI () " "); String strPathFile = application. getRealPath (request.
Meng xianhui's big blog
Web developers have such questions: how to send a file, especially a known type of file, to the client and directly prompt the viewer to download, instead of opening it with a program associated with it. In the past, the most
Recently I have studied HTTP Authentication in jsp (the preferred choice for SUN enterprise-level applications). It works as follows:
1. the server sends a request for authentication code 401 and a header message WWW-authenticate, and an
Java runtime platform JVM (java Virtual Machine) When an application is started, the virtual machine must allocate the most memory and the minimum memory to it. For JAVA, where the memory is crazy, the initial memory and the maximum memory will have
Iii. File Upload (I) Form requirements There are two requirements for the FORM for uploading files:1. Apply POST to METHOD, that is, METHOD = "POST ".2. Add attributes: ENCTYPE = "multipart/form-data"The following is an example of a FORM used to
In today's web development, there are more and more java-based applications. Among them, servlet plays a very important role. This series of articles will introduce some tools to assist in servlet development, so that you can choose from a variety
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