1, JSP Expression & JSP program section need to pay attention to a few details: (1) JSP expression can not use ";" End (2) No more than one statement in the JSP
(3) The content in the JSP expression must be a string type, or it must be converted to
JSP form submission data appears garbled
The question was really tangled for many days. It's too complicated. Said is related to the JSP file storage format, and decoding format, as well as the browser's decoding format.
1. The internet said a lot
Today encountered a problem, the updated JSP page deployed to the server under Tomcat, the page does not take effect. Finally know that there is no clear reason for Tomcat's work directory, now to learn about Tomcat's related principles
Tomcat's
An error was encountered today: Referenceerror:jquery is not
defined}) (jQuery);
problem: Need to use dtree, so need to Dtree.js and jquery.checkboxtree.js two JS files, and these two files need jquery-1.8.2.min.js, I have introduced three after
Del defines the deleted text content in the document, INS is used to describe the updates and corrections in the document, Del's browser default style is with strikethrough, ins default is underlined, which can also be a good illustration of the use
Recently encountered a problem, in the JSP page export Excel, only export 1 lines no garbled, export 2 lines of time, there are garbled, and then I have a list of exports, in the penultimate 2nd column when garbled, online search materials, have not
In a Web project, pass parameters to another JS file from a JS file
1, first JS file to add the parameters to the second JSP URL behind, this way the parameters to the second JSP, such as the following code:
2, in the second JSP through the
JSP gets the session value problem from the action there are several ways:
For example, I have a session in action ("SessionID", "11111111")
First, use the struts tag to obtain:
Second, session is also one of the built-in objects, you can use
JSP
summary of issues in which pages cannot be refreshed or prevented from refreshing If you want the form to refresh when you select, delete, modify, and so on, you need to add: window.returnvalue=0. such as leadership/leader_ctl.jsp
1: Use Jstl tags (can be used with custom tags)
First refer to Jstl label
Then use the foreach label
${user. Pid}
${user. Ploginname}
${user. Pusername}
${user. Pemail}
You can use and to
Why JSP pages are static.
The so-called JSP page static refers to the dynamic JSP page generated static HTML page, through the direct access to the generated HTML to obtain and access JSP the same display content and application functions.
JSP or
Modify the \ conf \ WEB. xml file in the Tomcat directory and find the followingCode: JSP org. Apache. Jasper. servlet. jspservlet fork false xpoweredby false 3 Add the following line of code between JSP org. Apache. Jasper. servlet. jspservlet 3:
1. For example, to obtain the value of the username attribute stored in the session, you can use the following methods:Session. getattribute ("username") gets the value of username,Use the following method in El:$ {Sessionscope. Username}
2. For
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
By chance, when you browse a website, the page is fresh and comfortable. Websites are developed using JSP. For my personal interests, I decided to test the security of my system.
Telnet www.target.com 8080
GET/maid HTTP/1.1
[Enter]
[Enter]
The
I. Preface
From a website, I saw a code "webpage capture", which was a bit interesting, but did not provide the source code. So I wanted to write it myself. In fact, the code is relatively simple.
Ii. Code
String scurrentline;
String
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