First the length of the code type is 2,attr 4:
Where the type id=1 has three properties
Type=2 has a property
${type.typename}
It's a simple loop, a loop,
Why 13 instead of 10 ....
That is to say that SEQ started at the
The problem of garbled characters after turning pages
JSP page:
Many times we have set the code for the project for UTF-8, can or will appear garbled problem, today I do a page pass the garbled problem, consulted the cloning, the results
In fact, the browser load display HTML order is in the following order:
1, ie download the order is from top to bottom, rendering the order is from top to bottom, download and rendering is carried out at the same time.
2, when rendering to a part of
Servlet: Of course, in servlet, the jump usually occurs in methods such as doget and dopost.1) Redirect ModeResponse. sendredirect ("/a. jsp ");The path of the page is relative. Sendredirect can jump the page to any page, which may not be
Chinese processing is very troublesome during development. Some content is recorded as follows:
JSP file encoding: UTF-8Tomcat URI encoding: UTF-8
1. Get form data.
String atest = request. getparameter ("test ");If (Atest! = NULL &&! Atest.
application and session are relatively simple. The scope of application and page is described here. application: global scope. The entire application Program is shared, that is, the same webapp in the deployment file is shared, and the lifecycle
Those who have written AWT or swing programs in JSP/servlet must be impressed with the event handling mechanism of the desktop program: classes that implement the listener interface can be used when a specific event occurs, call specific methods to
The following example shows how to call JavaScript Functions in the applet. 1. Applet source code (tmin_js.java)
// ImportationsImport java. AWT. graphics;Import java. AWT. event;
// Liveconnect... for JavascriptImport Netscape. Javascript.
Part 2: About javamail
Document usage
The documentation in the downloaded javamail API is very useful. You can find it in/docs/javadocs/index.html under javamail. The second part mainly analyzes the mail program components. You can read the document
How can I allow the servlet to access the webpage or JSP file under Web-INF. in web-INF, the application server regards it as a forbidden directory, that is, it cannot be accessed directly in the browser.For some reasons, Servlet access is allowed,
Jspinit () {}: this method is called when the JSP page is initialized, and this method is only executed once during initialization, therefore, the user performs initialization parameter configuration and other one-time work here, which is created by
1. download the latest cos package (http://www.servlets.com/cos/cos-05Nov2002.zip), decompress the COs. Jar under the lib directory to add to classpath.
2. Compile a JSP file to be uploaded. For convenience, you can use a simple HTM file. on this
I. Core tag libraries mainly include general tags, condition tags, iteration tags, and URL-related tags.Add the code at the beginning of the JSP file using the core tag Library:
II. General Purpose labels, such as , , , and
1. The label is used
Seven JSP actions
An action can affect the output text stream and create an object by editing.Id attribute and scope attribute attributes of each JSP action.
ID: indicates the name of an action,
Scope: indicates the scope of an action. Scope values
In JDBC applications, if you are already a relatively level developer, you should always replace statement with preparedstatement. That is to say, do not use statement at any time.For the following reasons:I. code readability and
Modify the src attribute of an image and assign a value to it to refresh the image,
However, due to the cache issue, if both values are the same, the browser generally does not refresh the image. Therefore, you need to make no changes to the image
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