This example is a reference to some of the Web site on JSP on the operation of XML related documents, but also combined with some personal experience. Examples of the content is the development of an enterprise internal catering system backend
The Implements a simple calculator program that requires: implemented using the Jsp+javabean pattern. The Project source code is as follows: File: calculator.jsp
simple Computer
-Perform calculations--%> calculation
Recently done a resource library system project, the teacher said can build open source forum instead of their own development of social modules, just in open source China saw a use of discuz ucenter function to achieve synchronous login Open Source
The source of the demand is this: Upload a large Excel file to the server, the server will parse this Excel, and then a piece of the insert into the database, the whole process will take a long time, so when users click Upload, you need to display a
JSP tutorial File download code share
1, download link page download.html
Page source code is as follows:
FileName: download.html
Author: vertical and horizontal software production center rain also odd (zhsoft88@sohu.com)
-->
JavaBean is a Java-based software component. JSP provides complete support for integrating JavaBean components in WEB applications. This support not only shortens development time (can directly leverage tested and trusted existing components, avoids
The last component associated with the JSP syntax is called an internal object. Within the JSP small instruction file, you can access these internal objects to interact with the servlet environment that performs JSP Web pages. Many of the access to
js| dynamic in our previous chapters, any HTML file can be transformed into a JSP file by changing its extension to. jsp. Of course, we need to know what makes JSP useful? The answer is the ability to embed Java. Place the following text in a file
javascript|js|xml| objects
The XMLHTTP object can be used to pass parameters without refreshing the page, as a way for JavaScript to pass parameters to the JSP.
Here's an example of JavaScript passing parameters to a JSP:
xmlhttp.jsp
nOut.println
js|sql| Backup | recovery | data | database
Backup: Send SQL to MSSQLServer:Backup Database to disk= ' backed up file name ' with InitNote: 1. The backup file name must be an absolute path.2. The backup file can only be the path on the machine
In
JSP page, including objects created by the user (for example, JavaBean objects) and
JSPhas a range attribute. The scope defines the time at which the objects can be accessed in which JSP pages. For example, a session object can be accessed on
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
JSP provides a number of simple and useful tools, including reading data from a database, sending data, and being able to display the results in a pie shape. Now let's take a look at this simple and practical approach.
All the things you need
In
What is basic validation? Readers will often see such a login interface (IE):
For example, Tomcat's manager application: Http://localhost:8080/mananager is the way to log in.
OK, first look at the following JSP code, the reader Test yourself:
How do I add a database jar package?1. First enter the current workspace, for example: (My workspace is Javaweb)F:\javaWeb\Web\WebContent\WEB-INF\libThen go to the Lib directory and put the jar package into the Lib directory.2. Then right-click the
When passing a Chinese string through AJAX, the Chinese string must be encoded as unicode. Generally, the built-in function escape () of JS is used (). however, a better function is found to determine the function for converting Chinese characters
In today's web development, there are more and more java-based applications. Among them, servlet plays a very important role. This series of articles will introduce some tools to assist in servlet Development, so that you can choose from a variety
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