JSON has been described in detail in the previous article, and JSON is straightforward and fast. And it blends well with JavaScript.
The JSP paging problem can be done well without the need to add a jar.
The following is a detailed description of
Because the JSP code specification requires no Java code to appear. All of them have a custom label technology for JSP.
Therefore, the JSP's custom label technology is to remove the JSP in the Java code. At the same time, packaging label personal
This problem also bothered me for a long time. Because of the El tags and other labels used within the JSP, a large number of spaces and line breaks are generated. For example:
Copy Code code as follows:
-------Start----------
1&
Three-step:
First, under the Web-inf to build a folder named TLDs, and then build a TLD file, such as FORMATTIME.TLD, the content is:
Copy Code code as follows:
"Http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd" >
1.0
1.1
Implement the pyramid as shown in the JSP,
The code is as follows:
The general idea is as follows:
1, first draw the first 5 lines. Because the number of i+ spaces = Total number of rows, the number of spaces in the first line is the total
JSP Tags:
Implementation Request Forwarding to add parameters to the above
El expression:
1. Get Variable data
Hello, ${name}
2. Get Array data
Hello, ${names[0]}
3. Get Collection data
names=new
Separate form from Action page
Button press, click or onclick event to trigger
Pass a unique parameter to the child page JSP,
Sub pages, responsible for querying and judging logic,
Jsp:forward tried, directly to the error
Copy Code code as
When I was doing my search results, I used an onclick event to highlight the selected row in order to be good-looking:
Copy Code code as follows:
var assno= "";
function Check (OBJ,CHE,RWID) {
if (obj.checked==true) {
What is included:
In the development of the page, some code will inevitably have repeated use of the situation, such as a page has a section of code a,b page and C page can use a this code, then the B and C pages include a page, the natural A This
This content is also prepared according to the requirements of the business students. In fact, this small project is just graduated from the time to do, many times we want to perform the following sql/hql and then get an HTML table output:
Input:
Tag Library taglib
tags are defined and distributed in a structure called a tag library, which is a collection of meta information and classes:
1. Label Processor: Java class that implements custom label functions.
2. Tag additional information
On the server side to determine whether the form is repeated, the main consideration in the page through the session to share the flag variable method to achieve, that is, in the client page set session in the flag variable, and then in the server
There are many methods about the request object, in the JSP built-in object "03" request Detailed "01", we have learned the request object in the parameter acceptance problem, then look at the other methods of request now:
Garbled solution
When this page appears, the controller must be found, just trying to parse the Viewresolver parsing attempt failed, for two reasons1. The resource hello.jsp file is not actually placed in the Web-inf directory2, the resource file is placed in the
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