The following code is the practice of inserting dates into the database that I use as a time selector in development.
The above is the JS section, the following is in the JSP how to call (is how to use JS, this and we usually use the same method,
First, the prefaceFor starters, it's a good choice to implement JSP and Servlet,tomcat. You can also use resin, these two products can not spend a penny. Resin's support for XML is good.
Second, download, install
Download address for
This function mainly uses the JSP page to generate the verification code, realizes the page to refresh through the original javascript+iframe. The steps are as follows:
1. Verification Code Generation page valicode.jsp:
2, set refresh page
Http://www.infoq.com/cn/news/2010/10/jQuery-Template
http://api.jquery.com/category/plugins/templates/
MS-released jquery template pluginIn this plug-in he uses the variable placeholder and the JSP's El expression is used in the same ${}, so in the
ckeditor API CHM Help documentation http://download.csdn.net/detail/guoquanyou/3622884
JSP pages submit form data using Rich Text control CKEditor
JSP pages use Rich Text controls CKEditor custom styles
JSP uses CKEditor and Ckfinder to implement
FCKeditor control please go to the official website to download http://www.fckeditor.net, this example is mainly used to Fckeditor_2.6.3.zip, Fckeditor-java-demo-2.4.1.zip, Some of the content inside the fckeditor-java-2.4.1-bin.zip, readers can
One, Page object
The Page object represents the JSP itself, or rather, it represents the JSP-translated servlet, which can invoke the method defined by the Servlet class.
Two, config objectThe Config object holds some of the servlet's initial data
JSP has a total of the following 9 basic built-in components
1, Request object client requests, this request will contain the parameters from the Get/post request through it to understand the customer's needs, and then respond.
2, the response
The first time a JSP page is requested, the JSP page is compiled into a Java file,
This requires an option to be configured in Weblogic.xml:
keepgeneratedtrue-1true/
The generated files are placed in the
The JSP page uses the URL encoding to pass the Chinese parameter, in the parameter parsing process will appear garbled. Because Java is designed to take into account the internationalization of the problem, when the Java source code compiled into
One, Page object
The Page object represents the JSP itself, or rather, it represents the JSP-translated servlet, which can invoke the method defined by the Servlet class.
Two, config object
The Config object holds some of the servlet's initial data
version dependencies between the Tomcat Servlet JSP jstl
Keywords: tomcat servlet jsp JSTL version
If the servlet/jsp/jstl is not the correct version, the following exception can easily occur:
generated servlet error: the
type
Iv. Write labels with label bodies
Need to return to Tagsupport.eval_body_include, you can enter the label body;
Attributetag.java
Package org.tagext;
Import javax.servlet.jsp.tagext.*;
Import javax.servlet.jsp.*;
public class Attributetag
First, create the database.
We create an Access database Student.mdb and use the Table Designer to create a table called Table1, and add test data as follows:
Second, configure the data source.
Select Start-> Administrative Tools-> Data Source
See a lot of online paging function realization, some feel too messy, some really do not understand, may be their own knowledge is not enough.
According to their knowledge, packaging pagination method, in the interface to achieve, for everyone to
Method One
Submit to this page "dividepage.jsp"
Paging display School Number Name Gender Age Birthplace Faculty Change Delete
/**
The main purpose of the following database connection is to find the total number of records
Springboot with its efficient development efficiency more and more in the development of small and medium-sized projects, and in the use of distributed development is also very extensive, Springboot officially recommended front-end framework 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service