Basic syntax
There are five types of JSP compiler guidance and Directive elements. after JSP 1.0, most of the JSP is contained in a single tag with as the end. the new JSP 1.1 Specification has been published, and it is also compatible with
The value of a text box in JSP is obtained through the El expression. This is a search function. After Entering Chinese characters, the search is successful. However, after the search is successful, the text box is garbled.Filters, unified JSP page
Symptoms:
When a page error occurs and an exception is thrown, it should be handled by error. jsp. However, we did not jump to the custom error interface as we expected, but to the default error interface of IE.
Root cause:
Error
Include command strong 2008.10.9
The include command notifies the container to embed other files at the specified position on the current JSP page. The content of the contained file can be parsed by JSP, which occurs during compilation.
Filename
Three methods for page Jump in JSP and their differences
Redirection can be used to achieve the jump. After the jump, the page address becomes the address after the jump.
We already know there are two jump methods. Java
Code
The first
Install JDK
First, install JDK. My JDK is installed in the C drive. The JDK root directory is C:/Java/jdk5.
Then configure the environment variableRight-click my computer> Properties> advanced> Environment Variables
Find the path "variable"
// -- Test. jsp is saved in the root directory of Tomcat -- String item_url = request. getparameter ("item_url"); If (item_url = NULL) item_url = "http: IP // XX. FLV ";Stringbuilder strxml = new stringbuilder (" ");Strxml. append (" ");Strxml.
JSON-taglib is a set of JSP tag libraries used to output JSON-format data in JSP code.JSON-taglib converts data formats using JSON: array, JSON: object, and JSON: property.
The specific usage is as follows:
Just dropJson-taglib.jarFile
In order to implement the communication between AS and JSP, we first configure Tomcat (not mentioned here), in the Apache Software Foundation/tomcat 5.5/webapps of Tomcat
Create a directory
Example: J:/program files/Apache Software Foundation/tomcat
Why is opencms used in JSP?Opencms provides many features to help you speed up development, such as templates, user management, permission settings, and Cache Management. You can also create dynamic navigation based on the file structure of opencms,
Problem:
details Pass Chinese parameters through URL through click connection
The Chinese parameter of the URL in the hitinfoqueryservlet squadron is used to convert the character set recommended by most people.
The Code is as follows:New String
[Original content]
Q &
1,
JSP
The Web
For the technology of developing dynamic interactive web pages in applications, describe JSP
Advantages and disadvantages of technology?JSP technology has all the features of Java technology, which are simple
Myeclipse: Modify the Page Template (JSP and HTML) in myeclipse development tools)
1. Using myeclipse tools to develop web projects, there is a common problem, that is, when creating a page file, you need to modify the pageencoding value, the
Hello everyone, this is my first blog. Sorry for the poor writing.
I have been asking questions about the number of online users and the number of online users today. I have found many online users, but they are not very good. They have many
Image. jsp
Color getrandcolor (int fc, int BC ){Random random = new random ();If (FC> 255) fc = 255;If (BC> 255) BC = 255;Int r = FC + random. nextint (BC-Fc );Int G = FC + random. nextint (BC-Fc );Int B = FC + random. nextint (BC-Fc );Return new
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
There are few spring tutorials provided on the Internet, and a little better information contains hundreds of pages, which is a great test for beginners. Therefore, the original intention of this article is to let you start with spring in the
Objective: l to further understand the MVC mode; L to understand the basic implementation process of the deletion function; and l to understand the basic implementation process of the modification function. Main Content: l use MVC to delete
Objective: To further master the MVC design mode, to master the implementation of the add function, and to master the implementation of the paging display function. Main Content: l introduce the MVC mode through the user information addition
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