When we used the El expression yesterday, the El expression could not get the value in the Variable. After checking the information, we can see that it is related to the servlet/jsp version, el expressions can be used only in servlet 2.4/jsp 2.0. In
Static inclusion: content is embedded into the page before the JSP page is converted into a servlet, and then compiled and run.
Dynamic inclusion. During running, the statement is dynamically compiled and loaded only when a request is sent and
A. jsp:
CodeWill Execute %>
Sendredict
Forward
Different Response
Different Response, but B. jsp can get the parameters of A. jsp
After the switch, the code after the original sendredict
Step 1: TLD Function Definition:
First, under the WEB-INF folder under the project folder, see a function-taglib.tld File
This file is actually an XML description file with the following content:
Xmlns: xsi =
Generally, Servlet and JSP technologies are integrated in a well-designed web application. Servlet controls business flow, and JSP is responsible for displaying business processing results. At this time, the redirection technology will be widely
ASP programmers often need to process application_start and session_start in the global. Asa file.
Events, such as user verification and redirection of different encoding pages, are very convenient. However, the popular JSP does not support such
Recently, a JSP website needs to receive data from the instrument. The data is transmitted using the POST method, but the format is enctype = "multipart/form" and cannot be obtained using the Servlet request, it has brought some trouble. After a
JSP page tag definition:
Implementation BehaviorThe first step to implement tag behavior is to move the scriptlet code from its original location to a Java class (lastmodifiedtag), as shown in Listing 1:
Listing 1. Create a timestamp tagPackage com.
1. Page ObjectThe page object represents the JSP itself. More accurately, it represents the servlet after JSP is translated. It can call the methods defined by the servlet class.Ii. config objectThe Config object stores some initial servlet data
Preface the paging function is inevitable during database usage, but JDBC specifications do not solve this problem well. Many of my friends have their own solutions for this demand. For example, we use a collection class such as vector to save the
Create a new JSP page in myeclipse, in order to make the page display Chinese, we always want to do the page instruction pageencoding = "UTF-8" or pageencoding = "GBK" and other actions, every time you create a page, you need to change it once,
① Out-javax. servlet. jsp. jspwriterThe out object is used to output the result to the webpage.
Method:1. Void clear ();Clears the content of the output buffer but does not output it to the client.
2. Void clearbuffer ();Clear the content of the
The requirement source is as follows: Upload a large Excel file to the server. The server parses the Excel file and inserts it into the database one by one. The whole process takes a long time, therefore, after you Click Upload, You need to display
1. Javascript parameter passing: this parameter passing method uses the opener keyword to implement cross-page parameter passing. Its usage is to use the opener keyword to call a component of the parent form.
Example: opener.myform.txt. value =
Understanding of the differences between JavaScript, JSP, Java, and javaee
JavaScript and Java are very similar. I believe that many beginners or those preparing to learn this knowledge will be confused and confused about JavaScript, JSP, Java, and
Step 1: drag and drop in extdesign to generate a page and export the Code as follows:
(Take generating a simple Panel as an example)
Ext. mypanel = ext. extend (ext. panel, {xtype: "Panel", title: "My panel", width: 400, height: 250, initcomponent:
The first thing I want to talk about is that AJAX cannot upload files. I can think about how AJAX can transfer files through passing strings to communicate with the background? In fact, JS cannot operate files for security reasons. Therefore, it is
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.