When you access the JSP page, the following message is displayed:
HTTP status 500-
TypeException reportMessageDescription The server encountered an internal error () that prevented it from fulfilling this
Small discussion on JSP Chinese garbled characters
------- Guo Peng
JSP is a hot topic, but most people have a headache about garbled code on JSP pages. I have some experience. I have been depressed for several days to solve Chinese Garbled text, I
Form)
To be honest, no matter ASP, PHP or JSP network programming, interaction with users is inseparable.The human-machine interaction platform basically relies on the corresponding text and list box for input, and then submits the data to the
Premise: assume that your HTTP address is http: // 192.168.0.1/your web application is webapp, then your web application URL is http: // 192.168.0.1/webapp/
Directory structure of Web applications:
Webapp/
Web-INF/
Classes/
LIB/
Web.
For beginners, Flex is used to write an example of interaction between flex (through urlloader) and the background to solve noon garbled processing:
This is the code for Flex. jsp:
String USR = java.net. urldecoder. Decode (request. getparameter ("
One of the most common issues about the JavaServer Page (JSP) newsgroups is related to recompilation. I don't want to re-compile JSP, but I have to do so. This is a headache for many developers. This article will describe the scenario of
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 "
This practice originated from the application of online electronic dictionary. The goal was completed by meteorlwj, elevenxl, and syani. The copyright of this article belongs to the above three people. I have no comments to reprint or modify this
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
Made a system. The user_add.jsp page and the user_list.jsp page are displayed.
Add the chinese user name "I love you" and the password "123"
Garbled characters are displayed on the display page. An error occurred while displaying Chinese
Literally, both of them have meanings. In terms of running results, the functions of the two are similar, but the running process of the two is quite different.
the command is the compile-time syntax, that is, when compiling, copy the content of
Page jumps can be achieved in two ways: Forward and sendredirect.
Forward: it can be used in JSP pages and implemented in servlet.
Use On the JSP page. For example, to jump to userlist. jsp, you can write:
Use the forward method of
When opening a file, the file encoding is determined by the file header.
Streamreader sr = new streamreader (@ "F:/cym/temp/1.txt ");Sr. currentencoding // return code
All regions in the world have local languages. Regional differences
Simply using JS, new date (), the client time is displayed in real time on the page.
Java + JS is required. The Code is as follows:
Uri = "http://www.infragistics.com/faces/netadvantage" %>Calendar CLD = calendar. getinstance ();ClD. settime (new
Session management is introduced in servlet & JSP (7), but no specific instance is provided. As the saying goes, listening is real. Therefore, this article describes an instance of session management. First, create a web project, logintest. The
As part of web development, database access is also essential. Let's take a look at JDBC first.
JDBC
JDBC (Java database connectivity) is an application programming interface (API). It describes a set of standard Java class libraries that access
Including the source code of the myeclipse project:
Http://download.csdn.net/detail/flyuniverse_shell/4144288
This program can be familiar with Ajax, please refer to the following code:
VaR net = new object (); // defines a global variable. netNet.
Author: greathack
URL: blog.greathack.com
Email: greathack@3java.com
Reprinted Please retain the author information 1, Brief Description: 1, the installation of the software used: apache_2.0.55-win32-x86-no_ssl.msihttp: //
The page command is usually at the top of the jsp page. Multiple page commands can be used on a jsp page. The syntax format of the page command is as follows:
[Language = "java"]
[Extends = "package. class"]
[Import = "package. class | package. *,
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