JSP learning notes (2) -- use tomcat to run JSP files

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.

Multi-language display in Servlet and JSP

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

Top 10 Java/jsp Learning Series (javamail API sends an email to [servlet])

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

JSP programming (II)-Basic JSP syntax (1)-Comment

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

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

JSP tag system and custom JSP tags

tld

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

JSP error handling

Error handling page in JSP-iserrorpage = "true" Example: mustbeerror. jspLanguage = "Java" Import = "Java. SQL. *, javax. servlet. *, javax. servlet. http. *" errorpage = "error. jsp" %>// This page must have an error.Int I = 0;Int J =

Configuration of JSP, Servlet, and JavaBean environments in Tomcat

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,

Solution to the Japanese Garbled text in JSP

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

Answers to JSP and Servlet questions

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 issues and other issues in JSP

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

Some common methods of connecting to the database in JSP

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

Summary of jump between JSP and Servlet

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

Opencms JSP Template Development-create a JSP template containing multiple editable Elements

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

Garbled characters are displayed on the JSP page. 2. garbled characters occur when the form is submitted to Chinese. 3. database connection.

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 extracts weather forecast data from WebService, which is a simplified code [effect chart].

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.

[Servlet + JSP programming] common development tools and development environment construction

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

JSP training (1) -- Overview

  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

JSP training (14) -- shopping cart instance (top)

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

Servlet and JSP Chinese garbled problem summary _ Jian

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

Total Pages: 280 1 .... 92 93 94 95 96 .... 280 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.