1, what is JavaBean
JavaBean is an important component in Java that can be cross-platform, and it is a component architecture. JavaBean in the server side of the application shows a strong vitality, in the JSP program commonly used to encapsulate
1. Why do I need page instruction
In the Java file, how to introduce a class from another package.
In the JSP file, how to introduce a class from another package.
(1), using the Import keyword, its advantages are: a reference, used everywhere.
(2),
The difference between annotations and
Take a look at the following code fragment
...
...
Have you come up with any similarities and differences here? Don't worry, let's take a look at:1. The same point: we do not see the relevant
It took me two days to figure out how to preview the picture.
Task requirements are as follows: There is a picture on the 1:jsp page (pic_1)
2: Click on the picture to eject the interface similar to the resource manager
3: Preview After selecting a
Config object represents the current JSP configuration information, but the JSP page usually does not need to be configured, so there is no configuration information. This object is less used on JSP pages, but is larger in the servlet because the
Original: http://www.gpxz.com/diannao/biancheng/261225.html
To automatically generate static pages, it is a good idea to intercept JSP requests with filter and preprocess them first to generate HTML automatically. An easy way to think about this is
So late, and did not eat dinner, I was so hungry I was writing code, and suddenly found me in the JSP if the parameter content contains%, such as the URL is:url:= ' http://109.13.15.44:8080/sms_send2.do?corp_id= account name &corp_pwd= password
I've been tested for a while. embedded in the JSP page based on CKEditor edit page, the first to ckeditor the official online download ckeditor, you can download here http://download.csdn.net/detail/ kezhongke/4867921 mine is ckeditor3.x, now the
First, download CKEditor
1. Direct download address, current latest version for 3.6:http://ckeditor.com/download
Second, install CKEditor
Unzip Ckeditor_3.5.zip, get CKEditor folder, copy ckeditor entire folder to the root of project project, that
The top of the page configuration: web.xml file to write the code filter, which is as follows:
encodingFilter
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
encodingFilter
/*
Note: (The above code must be written at the
A recently done project needs to display a two-dimensional code on the foreground page; because I have done two-dimensional code generation before, we used the previous way: Import Qrcode.jar package, and then create the background to save the
One of the JSP contents appears as follows, and in eclipse, the JSP problem as shown in the title Javax.servlet.jsp.PageContext cannot is resolved to a type:
Online Search, the solution is to to , it will not appear this problem, but
Declaring an expression .
is a local variable.
The servlet is a single example. So the variables defined by declaring an expression have only one copy and are shared by the user client.
******************
When using the JSP's the
I. Webcontend layer
1.webcontent/common/meta.jsp
Code:
2.webcontent/page/page.jsp
A total of ${page.totalcount} records a total of ${page.totalpage} page display ${page.everypage each page
Current First ${page.currentpage} page
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
Practicing the piano when the riff called a small piece of music, then I define the program's riff is a small piece of the program, put some of these days to write their own, later also long-term update, as their own accumulation and future
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
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