Development Environment: myeclipse + atat6
1. Create a web project named registersystem,
2. Create the login. jsp file in the webroot directory and modify the content in the body as follows:
Username: Password:
3. Compile the acountbean.
Some of the current JSP books directly describe the use of JSP, and then explain the use of serverlet; some books first describe the use of serverlet, and then explain the use of JSP. I personally think the second one is better. You can learn the
Author: asp3000Email: coolknight@263.netDate: 2000-12-29 20:41:03Author: Kathy kochmerLiu Yufeng http://www.21jsp.com
I saw a lot of questions on the Internet about how to learn JSP. I just saw an article on the Internet about how to learn
Install Tomcat
Tomcat is a network service software developed by Apache Foundation to support JSP (Java Server Page. The tomcat version in the Ubuntu software library is outdated, but the installation is relatively convenient:
Sudo
untitled document Physical path of the current web application: The physical path of the JSP file you requested: String Path = application. getrealpath (request. getrequesturi ()); String dir = new file (PATH). getparent (); Out.
Development Environment: myeclipse + atat5
Create a web project named test,
Create a login. jsp file in the webroot directory
Login. jsp
Username: Password:
Com. Ht. servlet in the SCR directory
Compile the acountbean. Java File
Cookie introduction and JSP method for processing cookies
1. What are cookies?
As we all know, the browser communicates with the Web server over HTTP. When a user sends a page request, the web server simply responds
Yes, and then close the
When Java is used to develop the enterprise system, especially for office-related software development, file upload is a frequently-mentioned requirement. therefore, there is a set of good File Upload solutions that can facilitate your development
Java Server Pages (JSP) is another major technology used by the J2EE Web layer to dynamically generate Web pages. JSP technology is an extension of Servlet technology. Compared with Servlet, JSP provides a natural method for generating web pages,
Solve the Problem of textarea input display in JSP (including carriage return, line feed, and space)
Package COM. work. util;/*** solves the problem of textarea input display in JSP (including carriage return, line feed, and space) */public
1. First, two concepts are clarified:
Server path, for example, http: // 192.168.0.1/
Web Application Path, for example, http: // 192.168.0.1/yourwebapp path
2. Description of relative paths and absolute paths:
In servlet, "/" indicates the
Address: http://zhanqi.net/blog/287/
Test Environment Servlet/struts2 + poi 3.7
Supports exporting the excel2003/2007 format, and the exported file name supports Chinese characters without garbled characters.
For more details, see the code and
Reference: http://www.cnblogs.com/xnxqs/archive/2005/07/13/191927.html
After a hundred efforts, finally can write their own upload applet, the above URL for standard writing, but this program and the new version of the commons-fileupload-1.0, there
First, let's talk about why it should be static.For the current web application, dynamic pages have a very high position. It is because of the dynamic nature that the current web is rich and colorful, but just like all other facts, the benefits are
1. What are the built-in JSP objects?
A: JSP has nine built-in objects:
Request: User-side request, which contains parameters from the get/POST request
Response: response from the webpage to the client
Pagecontext: Manage webpage attributes
Session:
Code:
Code:
1. A. jsp
certificate code input page
the verification code generated by the system:
enter the above verification code:
2. image. jsp
Color getrandcolor
Apache Tomcat 5.5 Servlet/jspContainer Overview
Introduction
Whether it is a system administrator or a Web Developer, you must familiarize yourself with important information before using tomcat. Here, we will briefly
This section mainly summarizes the solutions to jsp garbled code problems.
1. The most basic garbled problem.This garbled problem is the simplest garbled problem. Generally, it appears new. It is the garbled code caused by inconsistent page codes.
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