Some netizens do not know how to run their own JSP files. I will give you a brief introduction here and provide you with some reference:1. Download and install Tomcat. : Http://jakarta.apache.org/tomcat2. compile your own JSP webpage and Java object.
Because I have never believed that Java will have bugs that cannot be mixed into multiple languages, I have studied this weekend.Servlet,JSPThe problem of multi-language display, that is, Servlet's multi-character set. Because I am not very clear
A: condition must download Sun's javamail API package, address: http://java.sun.com/products/javamail/
I use version 1.2 here and add the relevant package (JAR file) to classpath.
II. This program is very simple, and we don't need to consider a lot
HTML comment
Display a comment on the client.
JSP syntax
] -->
Example 1
Generate the same data as the above in the HTML source code of the client:
Example 2
-->
In the HTML source code of the client, it is displayed:
Description
This
In-depth analysis of JSP environment session-based online user statistics
As a rising star, jsp can play a certain role in the Server programming environment. It is well supported by a series of industry standards.Closely related. Session is one of
I. jsp tag system
Ii. Tag execution process:
III.Custom tags;
3.1 The main role of a custom tag is to remove the Java Script in JSP. It belongs to JSP Technology
3.2. Procedure for compiling a custom tag: (definition of a traditional tag)3.3
Step 1: Install JDK and Tomcat and configure Environment Variables
Step 2: Create your own JSP app directory1. Go to the webapps directory of the tomcat installation directory, and you can see the Tomcat built-in directories such as root, examples,
Note: There may be many reasons for Garbled text, and the results vary in different environments.I have always been committed to finding a complete and omnipotent solution. I hope you can discuss it together.
Part 1:About Japanese encoding, the
1. What is the servlet lifecycle? What is the difference between Servlet and CGI?A: When a Web container loads servlet, the lifecycle begins. Call the servlet Init () method to initialize the servlet. By calling the Service () method,Call different
Date Problems
1. Get the current server Date:
[Copy to clipboard] [-]
Code:
Date mydate = new date ();
%>
2. Obtain the current year, month, and day:[Copy to clipboard] [-]
Code:
Date mydate = new date ();
Int Thisyear = mydate. getyear () + 1900; //
Many new JSP beginners often ask how to connect to the database. Why are there errors? Therefore, I wrote an article here for your reference. In fact, it is not a good practice to put all the database logic in JSP, but it is helpful for beginners to
Request. getcontextpath () indicates/project name. Example:/news01
1. jump from the JSP page to another page or Servlet
Use the full path (/project name/file path) to jump from the JSP page to other pages ). For example, the project name is news0
In the previous article, we have learned how to create a JSP template containing the "head" area and "foot" area. Now we will expand this template, add multiple editable page elements.First, add the "" tag to the HTML head tag of the template file
An error occurred while submitting the Chinese word to the database during the exercise, so I found this article.
The change in MySQL. ini does not play a role. It cannot be solved if it is converted to gb2312.
Request. secharacterencoding ("gb2312 "
JSP obtains weather forecast data from WebService.
There are related code on the Internet, but it is complicated. I have improved it. It is easy to implement.
Package com. XXX. Web;
Import java. Io .*;Import java.net .*;
Import javax. xml. parsers.
1. What isServlet?
Background:
In the Client/Server solution, the program can be automatically downloaded to the client and executed. In the past, more people focused on developing the applet and graphical user interface (GUI) components on the
This document is a JSP Training Note and the first training-Overview.
(See Chapter 1st of Java Web programming basics tutorial)Objective: To understand the concept of JSP, the relationship between JSP and Java, the issues to be solved by JSP, the
Objective: To learn how to store the information of a shopping cart and to learn how to implement common functions of a shopping cart. Main Content: l first analyzes the general process of online shopping by users; l introduces the data structure
Forword:
For cainiao such as Jian, Chinese garbled characters are a headache During javaee projects.
Today, I will dedicate this virgin blog to you, Chinese brother.
Question_1: [Garbled Chinese Characters in JSP content display]
If the JSP page
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