Thoughts on JSP garbled code and Solutions
I. possible causes of garbled characters include:
1. garbled characters in the response: displays garbled characters on the page. For example, when index. jsp is displayed, "User Name" is garbled.
2.
The issue of JSP Chinese garbled characters is often confusing, especially for beginners who are familiar with JSP programming.
Common countermeasures for JSP Chinese processing are as follows:
﹤%@ page contentType="text/html;charset=gb2312" %﹥
JSP e-commerce websites separate Web page logic from Web page design and display, and support Reusable Component-based design, making Web-based application development fast and easy. The JSP business website page consists of HTML code and Java code
FastJsp is a Lightweight J2EE MVC development framework designed to quickly develop high-performance jsp web applications. The JSP development framework is fully based on the JSP1.2 specification and does not contain any tags or template parsing.
I have been confused about several methods of Servlet page Jump. I searched the internet today and found it again. I'll take a look later.
The Servlet page Jump is divided into two parts: Servlet, JSP, and servlet.
Servlet:Of course, in servlet, the
Use of JSP Actions
JSP actions allows you to dynamically insert a file, reuse the JavaBeans component, forward to another page, or generate an HTML for the Java Plug-in. Available actions:(1) JSP: include -- include a file when the page is requested.
I. Purpose:
Through the comparison between ASP and JSP for the same function processing, research and implement the conversion from ASP to JSP. From the perspective of practical application, we have selected some representative database-related
Introduction to a JSP-based Oracle Tool
AJAX is used for submitting and executing statements. The local machine won't be stuck. When executing the First sentence, you can directly throw the second sentence.
Collected two EXP, Oracle... I was
In Web Server programming, session state management is an important issue that must be considered frequently. This article analyzes the session management mechanism of JSP/Servlet and the problems it faces, and then proposes an improved session
Call jsp el expressions with parameter Methods
A jsp el expression contains variables and operators. Any bean stored in a JSP scope (such as page, request, session, and application) can be used as an EL variable.
The operator describes the
In useJSPIn the process, the most annoying problem is Chinese Garbled text. The following are the Garbled text problems I encountered in software development and solutions.
1. The POST submission form is garbled.
The common condition is that the
I think it is necessary to elaborate on how to learn JSP technology. I think so:
1. First of all, we must have the foundation of the Java language. That is to say, we must first master the knowledge of Java SE without Java. What about JSP?
2. master
As a senior Java technical expert and supporter of Enhydra, the author of this article strongly recommends that developers use other technologies that can replace JavaServer Pages JSP) servlets when choosing a Web application programming language.
The following describes how to configure JSP environment variables (tomcat + MyEclipse + mysql)
Tomcat server configuration
1) Configure JDK: Add JRE_HOME = % JAVA_HOME % to the environment variable;
2) Change the port number. Oracle server port 8080
JSP (Java Server Pages) is based on Java technology, and adds Java code snippets (Scriptlet) and JSP tags to traditional webpage HTML files, thus forming a JSP webpage. When the Web server encounters a request to access the JSP webpage, it first
The company has a JSP project memory that often overflows and tomcat stops in about two hours. I wrote a class to monitor JVM available memory.
Import java. util. Timer;
Import java. util. TimerTask;
Import java. util. Calendar;
Import
To customize a JSP tag, follow these steps:
Create Tag Processor
Create a TLD File
Edit web. xml
Use JSP custom tags on the JSP page
Here we mainly discuss and learn not how to develop custom tags, so we can find the specific development examples
Response. sendRedirect is two different requests that are redirected on the client, and the browser displays the name of the page after the jump. Because it redirects from the client to the second page.
When forward is used, because only one
The following describes the meaning and usage of JSP labels.
the tag indicates a static or dynamic file.
the tag indicates redirecting a static html/jsp file or a program segment.
Syntax:
Or
......
A tag is used to create a BEAN instance on
The JSP system consists of four parts:
1) database connection: the JSP system supports common databases, including Oracle, Sybase, MSSQLServer, MySQL, and DB2, use JDBC to connect to the database based on the selected database type and the database
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