I have learned JSP for more than a year. I read a lot of related books on and off this year, but I still feel that I am not skilled enough. There are a lot of things that you know about, but you just have to look at the projects you have done before.
tag
This label is used to create a correct link for the internal VFS resources. With this label, you can manually add the Web Name and Servlet name in the URL. In addition, if static export is set for a page, the URL with is automatically replaced
Generates four random numbers and pictures with messy backgrounds. The numbers and background colors change,
ServerEnd refresh (using history. Go (-1) will also change)
Prototype reference Alibaba http://china.alibaba.com/member/showimage
File that
Basic steps:
1. First write the class, extends tagsupport class, and rewrite the method you need.
(Note: If you inherit the simpletagsupport class, you must put all the processing code in the dotag () method)
2. Configuration
Write a TLD file and
JSP Chinese garbled Processing Solution
Beginners JSP, especially Tomcat environment (glassfish default UTF-8, there is no such problem), often because of Chinese Character Set settings ProblemsChinese garbled charactersThis article provides a
Directly send code. This is the upload code that I have been using.
// Obtain the action path and Image Storage path// String actionurl = request. getparameter ("actionurl ");String imageurl = request. getparameter ("Foldername ");// System. Out.
The internet age is actually the data age. Building a large E-commerce system involves a large amount of data display. The paging display of data is a frequent problem, if every programmer needs to consider every detail of data acquisition and
What is the difference between JSP and Servlet in the application? Many people are confused. Let me say a few things. Simply put, Sun first developed the servlet, which has powerful functions and advanced system design. However, it still uses the
Have you ever thought about sending dynamic images from JSP pages (or Servlets? This tip tells you how to do it. To run the code here, you need a tomcat or other web server that supports JSP 1.1.
When a Web page is sent with the MIME type of
The image is encoded in JPEG format on the JSP page and stored in the specified folder. Compared with component upload, this JSP upload method seems clumsy and cannot perform operations on file attributes. However, it is indeed easy to implement the
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
How to configure struts4.0Step 1: Create a project.
2nd step: Create a webapplication by name (for example, book) and check jstl1.0 and struts1.1 (struts1.1) in the following selection basket. Press enter.
3rd step: Create a servlet in the Web
TagThis label is used to access the "property" of the current file or its parent folder. "properties" are set in the "properties" dialog box in the "Browse" view of opencms.
Label description
Name
Description
Required
Name
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
Presumably, you often encounter garbled code problems during website development. Recently, when I wrote a small example of a blog, I encountered garbled code problems, which are generally common and often searched, all solutions are available, but
1. pageencoding:
JSP page code: Code of the JSP file
2. contenttype:
Code displayed on the web page: the code displayed in the browser for the JSP output stream
3. html page charset:
Web page input encoding: font encoding entered in the
Method 1. after the page is fully loaded, run the opentheindexpage () method telecommunications data collection system Method 2, but the effect is not as good as method 1. the second type can only write one function and cannot be
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