Freebsd + Resin is successfully created to support the jsp platform

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

Link two-level drop-down boxes on a jsp page to read database data in real time

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

Jsp to obtain the browser and operating system information of the Client

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

JSP and JSF are combined to create a perfect Web application

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

Jsp code for generating thumbnails

Java. io. File file = new java. io. File (saveurl); // read the uploaded FileString newurl = request. getRealPath ("/") url "min _" filename "." ext; // new thumbnail storage addressImage src = javax. imageio. ImageIO. read (file); // construct an

How to call JSP pages from the MIDlet in the Development of J2EE

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

Use jspsmartupload for upload and download

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

Efficient and simple jsp Paging

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

Introduction to custom JSP tags

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

JSP script elements, commands, and predefined Variables

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

Experience in using cookies for jsp development websites

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)

Jsp obtains relative and absolute path code

// 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.

Use JSP to control file downloads

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

HTTP authentication method in jsp

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

Tomcat sets cache size

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

A new programming idea (below): With Automatic paging 2-1 ntPage. jsp

NtPage. jsp (preferred for SUN Enterprise applications) ------------------------------------------------------------------- Int PAGESIZE = 10;Int old_PAGESIZE = PAGESIZE;Int curPage = 1;Int pageCount = 0;Int iStart = 0;Int iCount = 0;Int

JSP implementation tree structure (6)-contains the connectinDB. jsp file & orgConnInclude

// ConnectionDB. jsp (preferred for SUN Enterprise applications) Connection conn = null;Try {Class. forName ("Oracle (large website database platform). jdbc. driver. Oracle (large website database platform) Driver ");String url = "jdbc: Oracle

Full introduction to jspSmartUpload upload/download (III. File Upload)

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 jsp, use js to generate dynamic database-related secondary linkage drop-down boxes

Add background products select a level-1 category: & Lt; td width = "320" & gt; select a level-1 Category Rs = Conn.exe cuteQuery ("select * from ego_bigsort order by Bid ");While (rs. next ()){String Bname = new String (rs. getString ("Bname").

New technology to replace JSP-tapestry [transferred from java-cn]

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

Total Pages: 1800 1 .... 1578 1579 1580 1581 1582 .... 1800 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.