Note: to verify whether the verification is null, you must first ensure that the verification is performed before the form is submitted. If there are empty items in the verification result, the form cannot be submitted and a verification error
I have always liked JSP 2.0, but I do not know enough about the tag library of JSP 2.0. Therefore, I learned that there is one type of tag library that can be calledThe tag of the function-based tag library is mainly used to call static function
1. cache report source
Cache the report source in session variables so that the report source can be effectively used multiple times. When a report source is not cached, It is very expensive to create a new report source multiple times. In addition,
There are two pages, A. jsp and B. jsp. A. jsp has a submit operation, and B. jsp is the action of the submit operation,
In. add to the JSP page. On ie6.0,. the content of the JSP window is changed to B. JSP, and. JSP content addition will be
Classic getting started Tutorial: JSP standard template library (below) jstl tag Library
Jstl is generally considered a single-tag library. However, jstl actually has four tag libraries. These tag libraries are summarized as follows:
Core tag
Dynamic web page (JSP, JSF) bug in tomcat5.5.23:
JSP: test JSF:
When you click the two links above, you can see what happened: the page jumps to the Web homepage !!! But for HTML pages, it cannot be said !!!
We recommend that you use
Java Server Page (JSP) is becoming increasingly popular as a technology for creating dynamic web pages. JSP is not the same as ASP, PHP, and working mechanism. Generally, JSP pages are compiled rather than interpreted during execution. Calling the
Part 1 installation in the Java environment
1. The latest j2sdk version is 1.4.2 _ 01,: http://java.sun.com/j2se/1.4.2/download.htmlDownload netbeans ide v 3.5.1 with j2se v 1.4.2 cobundleUse netbeans ide v 3.5.1 that includes j2se v 1.4.2
2.
First, import the jquery package file.Download.
Then introduce the package in JSP:
Next, introduce your own JS:
The content of my. js file is as follows:
$ (Document ). ready (function () { $ (" Hello "). appendto ("body"); $ ("# Stop" )
Currently, WebLogic 9.2 is used.
Every time the JSP file is changed, WebLogic needs to be restarted, and the server is always restarted, making everyone very hurt.
Finally, we found a solution.
Take my current environment as an example:
OS:
This article mainly introduces how to use lomboz to develop jstl and El. It is best to first refer to my previous article "using eclipse3.0.1 + lomboz3.0.1 + atat5.0.28 to develop jsp". The environment configuration is similar to it, here is a brief
1. Forward request jump
Request. getrequestdispather (""). forword (request, response );
Features:
(1) the address bar remains unchanged. Cause: Because the address bar remains unchanged after the jump, the address before the jump is refreshed,
Many application presentation layers use JSP and Servlet. This article discusses how to improve the performance of such applications through coding best practices and deployment process configuration.
Recommended best coding practices
This section
// Sometimes the user wants to download the file, but the file type is associated with the browser in the system, and the result is opened in IE.
// Common examples include Word, Excel, and PDF. Therefore, converting a file into a data stream allows
This article aims to correct some incorrect articles on the Internet!
Development steps:
First, create a class:
Inherit bodytagsupport
Then set the field generation Set Method
Class:
Package Org. pan. tags; import Java. io. ioexception; import Java.
When a JSP file is requested for the first time, the JSP Engine converts the JSP file into a servlet. The engine itself is also a servlet. In jswdk or WebLogic, It is jspservlet. The JSP Engine first converts the JSP file into a Java source file. If
Compared with ASP and PHP, Servlet/jsp has a high execution efficiency due to its multi-threaded operation. Servlet/JSP is executed in multi-thread mode by default. Therefore, you must carefully consider the multi-thread synchronization issue when
implementation methods
Generally, two types of tags are used: the body part and the body part.
-- To implement tags without the body part, you must inherit the tagsupport class and implement the dostarttag () and doendtag () methods.
-- To customize
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.