1.1 Java Servlet and Its Features
Servlet is the answer of Java technology to CGI programming. ServletProgramRun on the server to dynamically generate Web pages. Compared with traditional CGI and many other CGI-like technologies, Java Servlet is
1. parameter transmission garbled characters
1. Parameter garbled characters passed in post mode:
Add a filter or request. setcharacterencoding ("UTF-8 ");
2. parameters transmitted in URI or get are garbled:
Modify tomcat/config/server. xml
Change the default pageencoding in myeclipse
When you use myeclipse to create a JSP file
The pageencoding does not support Chinese characters. You need to change the default pageencoding to a pageencoding that supports Chinese characters.
When tomacat is started, the following error occurs:Severe:
Null
Component
Catalina:
Type=
Jspmonitor,
Name=
JSP,
Webmodule= //
Localhost/, Go to the Internet to find the answer. Many Daniel said that the JDK version of the project is
Several Methods for passing JSP page values:1. Hide the field transfer value:">
2. url transfer value:Use buttonA. '"Value = "Modify distributor"/>B. Set the onclick = "modifyregion ()" of input ()"Function modifyregion (){Window. Self. Location =
Action commands in JSP include, forward, usebean, getproperty, setproperty, and plugin.
I. include commands
the tag indicates a static or dynamic file.
Syntax:Or
Note:1. Page = "path" is a relative path or a relative path expression.2. Flush =
The following program is the test. jsp file: test page
_ fcksavedurl = "" CSS/style.css ">" test page Name: password:
The following is the doadd. jsp file:String url = "JDBC: Microsoft: sqlserver: // localhost: 1433; databasename = test ";//
Use the JSP built-in scope object session. Using its two methods setattribute (), getattribute ()
2. The following example implements the function of passing parameters of the first JSP page to the third page.
3. The Code is as follows: 1.jsp
What
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
This article discusses JavaBean. In the previous servlet & JSP events (12), we wrote a simple message board, but there are some problems in this small project. For example, we include a large number of Java code in the JSP page, which is fine for
In this article, we will discuss Expression Language (EL ). Let's first discuss its syntax.
El syntax
The El syntax is simple. All El expressions start with $ {and end. For example, $ {expr }.
"[]" And "." Operators
El uses the "[]" and "."
Tomcat + JSP classic Configuration
Configuration of JSP, Servlet, and JavaBean environments in Tomcat
I often see JSP beginners asking how to configure JSP, Servlet, and bean in Tomcat. So I summarized how to configure JSP, Servlet, and Ben in
Recently, when creating the company's website background, in order to make the published information more eye-catching and special, I decided to use an online editor to edit the content online. At that time, I thought of two solutions: ewebeditor
1. requestdispatcher. Forward ()
Is used on the server. When forward () is used, the servlet engine transmits the HTTP request from the current servlet or JSP to another servlet, JSP or common HTML file, that is, your form is submitted to. JSP, in.
A solution to the problem of JSP data and JavaScirpt Data Interaction for WEB programs, front-end (JavaScript) and backend (JSP/Servlet) cannot share data, only the back-end program (JSP) can output data and generate pages to the front-end. At this
Java Server pagestm (JSP) technology provides a simple and fast way to create a web page that displays dynamically generated content. JSP technology is designed to make it easier and faster to Construct Web-based applications that work with various
Mapserver supports various interpreted languages through Mapscript, such as C #, java, TCL, and PHP.
Swig is an open-source tool. swig can Package c/c ++ code into code libraries available in various scripting languages. Swig this great
To package
There are too many articles to install the lomboz plug-in eclipse on the Internet. Many problems have been encountered during the installation and configuration process. It took two days to complete the installation. Here are some of my personal
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