Because many
Program
Code JAVA Implementation (JSP), I made a Java version using a little time, I am still getting started in Java, during which I checked some information, although the program is relatively short, but it is still naughty.
As
Displayfile. Java
//*********************************File parentdirectory = NULL; // Current DirectoryArraylist [] file = NULL; // stores all files in the current directoryArraylist [] Directory = NULL; // stores all directories in the current
Have you ever thought about sending dynamic images from JSP pages (or Servlets? This tip tells you how to do it. To run
Code You need a tomcat or other web server that supports JSP 1.1.
When a Web page is sent with the MIME type of image/JPEG (or
The following page generates an exception:
JSPs 1.0 error page demo JSPs 1.0 error page demo String S = NULL;S. getbytes (); // This will give the nullpointexception exception%>
The following page is called after an error occurs:
attenion
Are you often complained about slow response to JSP pages? Have you ever wondered whether your web applications will be able to withstand the increasing traffic volume when the number of customer visits increases dramatically? This article describes
JSP: plugin action enables you to insert the object or EMBED element of a specific browser to specify the plug-in required for the browser to run a Java applet.
Syntax:
[Name = "instancename"][Archive = "uritoarchive,..."][Align =
Dynamic include
Use the JSP: include action to implement always checks for changes in the contained files. It is suitable for inclusion of dynamic pages and can contain parameters.
Static include
Implemented by using the include pseudo code.
The following uses Tomcat as the JSP Engine and uses tomcat, Apache, and IIS as the three web servers to describe how to build a JSP running environment.
I. Introduction to related software
1. j2sdk: Java2 software development tool, which is a
Method 1: the simplest and most commonly used method
Or here, you can use gb2312 or GBK, which is only a string of many characters supported by GBK than gb2312.
This method is used to display Chinese characters on the JSP page.
Method 2: Use a
1. Create a database and ODBC Data Source
1. Create a jcc. mdb database and user table2. Add Test Data3. Configure the ODBC Data Source
2. Under /, create the Access database connection file Select. jsp.
Select. jsp source code is as follows:
Try
Introduction:
Let's compare two large websites:
51job and Zhaopin (first, I declare that I am not making advertisements for them. I only use them as an example for technical comparison)
51job uses a relatively "advanced" php technology, while
Please refer to the main principle of http://blog.hunan2s.com/article.asp? Id = 233
After debugging, it is successful .. Ah
Add the source code ..
JDK 1.5 + ECLIPSE + TOMCAT 5.0.28 + MYSQL 5.0
Database TEST, table name newsField: id int
Author: danielmouse
As a friend asked me what I had to do before developing JSP, I wrote this article.If you have any mistakes, please correct them and don't flat me! :)
Preparation software:J2sdk-1_4_0_01-windows-i586.exe ----- jsdk java
In a password-protected Web application, it is not only necessary to call the invalidate () method of HttpSession to correctly handle the user exit process. Now most browsers have buttons for moving back and forward, allowing users to move back or
In ASP, I once told my friends how to prevent ASP programs from reading data from the cache, which can also be implemented in JSP. See the following:
1. You can use the methods provided by java in jsp or servlet.Response. setHeader ("Pragma", "No-
With the development of WEB technology, WEB content ranges from static pages to dynamic pages with rich content. Dynamic page generation is a challenge for WEB developers. There are many ways to solve this problem, such as plug-in technology and
Image. jsp -------------------------------- Jsp page for Generating Random verification code Images
The Code is as follows:
Copy codeThe Code is as follows: Java. awt. image. *, java. util. *, javax. imageio. * "%>
Color getRandColor (int fc, int bc)
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.