application|js| Tutorial
Application of JSP tutorial--application
In the previous article we talked about using session in JSP to save private information for each user, but sometimes the server needs to manage parameters for the entire application
Introduction
Java 2 Enterprise Edition technology has been widely used in Web application development, in which the JavaBean, servlet technology for developers to provide a clearer development environment, using JSP Technology Performance page, Use
Js|session on a classic website, visitors can browse several Web pages and perform some interactive behavior. If you are writing such a website, it is very useful to use some data from each user. For this purpose, we can use the "sessions" in the
JS the first part of the Java environment installation
1, the latest version of the current j2sdk is 1.4.2_01, download address: http://java.sun.com/j2se/1.4.2/download.html download NetBeans IDE v 3.5.1 with J2SE V 1.4.2 Cobundle uses NetBeans IDE
js| Online | Online number/** This is the class that manages user information
File name is Onlineuser.java
Welcome to Visit Javajia Home (http://www.javajia.com), made by yuking. 2001.1.1
*/
Import javax.servlet.http.*;
Import
Download Address: http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
First step:----Install J2SDK:
Download J2SDK installation files to the Sun official site (http://java.sun.com): j2sdk-1_4_2_04- Windows-i586-p.exe, download and install
One, form part (index.html)The first is a form Fill page, with a div with ID autosavemsg to display the return information, and a checkbox with an ID of draft_autosave to determine whether to save automatically, and then name the textarea ID as
js|web| Evaluation | Mainstream Jsp:java Server Page
What is the reason for JSP to appear? Java is having a hard time pushing developers, first of all because Java lacks broad support for mainstream systems, and there is a lack of direct reference
js| Beginner | process | detailed
PrefaceFrom now on I'm going to write down the process of learning JSP. I collected these things from books and the internet, and I wrote them for my reference as a beginner.
Please allow me to say something that
js| Tutorial
The Jsp:plugin Action enables you to insert the object or EMBED element of the specific browser you want to specify the plug-ins that the browser needs to run a Java applet.
Grammar:Type= "Bean|applet"Code= "Classfilename"Codebase=
Js|servlet Jsp-servlet provides an excellent platform for Web application developers. However, most of the domestic development based on Jsp-servlet is in the most basic state, code reuse rate is low, low development efficiency, can not adapt to
The js| variable JSP expressions and the code in Scriptlets provide 8 types of automatically defined variables, sometimes called implicit objects (intrinsic objects). They are: request,response,out,session,application,config,pagecontext, and page.
js| Array | page
In the forum often see someone asked how to pass the array between JSP pages, in fact, with JavaBean is very easy to achieve.
Here's a simple example of what type of data structure can be passed as long as you follow JavaBean's
js| Chinese Characters | graphics | Verification code
Create by Smallnest
Email:smallnest@gmail.com
Website:www.kuaff.com
Generate Random Colors
Color Getrandcolor (Random Random, int FC, int BC) {
if (FC > 255) FC = 255;
if (BC > 255) BC = 255
js| Solution | problem | show | page
One, JSP page display garbled
Second, the form submitted in Chinese when there are garbled
Third, the database connection appears garbled
Everyone in the development process of JSP, often the problem of Chinese
js| variables in are local to the JSP, and they are not visible to external functions, even if they are declared on the same page. Such as:
int evilvariable = "666";
%>
...
function TestFunction () {
Inside the function, the variable evilvariable
js| Repeat | Repeat submit
1 JavaScript, set a variable to allow only one submission at a time.
2 or JavaScript, put the submit button or image as disable
onsubmit= "Getelbyid (' submitinput '). Disabled = true; return true; " >
3
Iis|js Preface: Before also read n document, follow inside the description configuration, but always did not succeed, today finally succeeded!!! Come back and look at those documents, a lot of direct CTRL + V CTRL + + (also does not explain the
js| generates HTML Readtemplates.java
Package ball.news;
Import java.io.*;
Import java.util.*;
public class Readtemplates
{
Private String temp = null;
Private Object A = new object ();
Public Readtemplates ()
{
}
public string Gettlpcontent
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