Goal: L MASTER the information how to store the shopping cart; L MASTER The realization of the common function of shopping cart. main content: L First analyzes the general process of user online shopping; L Describes what data structure
JSP programs are modules, and have a powerful expression-request (divsentation-request) function.
Creating a perfect database access is a challenging process, and the JDBC interface is a good way to do this.
However, the JDBC code embedded in the
Prerequisite: Use JSP to display the picture. The location of the picture is stored in the database.
Methods: The database was connected with JDBC, and the data was read from the database and output to the page with the output stream.
If you are unfamiliar with Java programming, you may want to take a look at Sun's guidelines. However, web creators do not need to do much Java development. In addition to some method calls, you should use as little Java code as possible in your JSP
js| variable
To simplify the code in JSP expressions and scriptlets, there are 8 types of automatically defined variables, sometimes called implicit objects (intrinsic objects). They are: request,response,out,session,application,config,pagecontext,
j2ee|js| Program | tips
method One: Caching data in the Init () method of the servlet
After the application server initializes the servlet instance, it invokes the Init () method of the servlet before servicing the client request. In the lifecycle
js| Paging
JSP is as follows:**********************int curpage=1;//Current Pageint page_record=20;//The number of records displayed per pageUse the following method (SQL query complete, fast)Curpage=integer.parseint (Request.getparameter ("page"));//
JS second part, about JavaMail
Working with Documents
After downloading the JavaMail API, the documents contained therein are very useful and the documents are stored in the subdirectory/docs/javadocs/of the directory where the JavaMail resides.
JS first part, HTML form
Divide and Cure
One of the best features of JSP is the ability to break the project into components. This messaging tool also has these features, and our components include:
An HTML form that is used to post an email
js| Pagination | data | show | page
In a page, when there is a lot of data to retrieve, it is often necessary to display the data in pagination and to make the paging.
Here are some routines to illustrate the implementation of JSP page paging
This error usually occurs when you write and save JSP files in JB8 (prompts in the status bar)
Com.borland.primetime.util.AssertionException:gbk
The JSP file is not saved correctly.
The personal modification method is as follows:
This problem I am
js| source code One of the Opdb.java
============================================
Package Ymbean;
Import java.sql.*;
Import java.util.*;
Import java.text.*;
Import Com.chinazjj.sql.dsql;
Import Com.chinazjj.util.dutil;
The contents of the other
js|: Xu Chunqin
Here are some of my experiences in learning JSP:
First, the JSP working principle
When a JSP file is first requested, the JSP engine converts the JSP file into a servlet. And the engine itself is a servlet, in JSWDK or WebLogic,
js| Create | graphics
There is a technology that produces neat, fine-grained histograms in Java Server Pages (JSPs) that can be used as a reusable background. In order to achieve the purpose of reusability, you need to make the size of the graphics
JS Preface
Anyone who has the experience of JSP writing has JSP debugging difficult experience. The lack of automated debugging tools makes it necessary to use a large number of print statements in a file when debugging JSP. This approach is a
js| templates
Execute TemplateThe templates discussed here will be executed under three custom tags:Template:insertTemplate:putTemplate:getThe Insert label contains a template, but before it is included, the put label stores some information--name,
js| create what is JSP tag pull? If you know Html,xml, then you should know the tag. Any tag based language (such as HTML) must be between ' ' . is a title tag, these HTML tags ( tags) are commonly used in client browsers, the role is to unify the
JS because of the change in the relationship between the version, this article may not be universal
Before reading this article, you should read Sun's article and try to practice it.
http://java.sun.com/developer/technicalArticles/xml/WebAppDev3
js| Paging
ObjectiveIn the use of the database process, the inevitable need to use the paging function, but the JDBC specification is not a good solution. Many friends have their own solutions to this requirement, such as using vectors such as
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