The purpose is to remove a series of data from the database
At the end of each row there is a delete item
However, the deletion requires the user to confirm whether the deletion
I used JavaScript to judge.
This will jump out of the OK and
Author: He Zhiqiang [hhzqq@21cn.com]
Date: 2000-08-04
2000-08-16
Version: 1.1
Functions: JSP database Operations routines-stored procedures-Jdbc-odbc-sql Server
The stored procedures for SQL Server are as follows:
CREATE PROCEDURE
In the traditionalJSPProgram.CodeAndJava codeIt is convenient to write together, but it also makes the page difficult to maintain. The burden of HTML developers and JSP developers increases. We can turn this traditional technologyPage pulling data
How to Use JS programs:
Scripts can be written anywhere in hmtl or JSP.
1. . Several On the same page are interconnected, rather than independent, and variables can access each other. Like java code snippets in JSP.
2. demo : You can write
First, import the jquery package file.Download.
Then introduce the package in JSP:
Next, introduce your own JS:
The content of my. js file is as follows:
$ (Document ). ready (function () { $ (" Hello "). appendto ("body"); $ ("# Stop" )
For the Usage Analysis of JavaBean in JSP: We can use the scriptlet method: /
You can also use the method // bean. hellobean. Java:
package bean;public class HelloBean {private String str;public void setStr(String s){str = s;}public String getStr(){
Preface
In JSP web projects, the file upload function is likely to be used.
Upload a local file to a path on the Web server.
For Java, there are many open-source components that implement such functions, such as commons-fileupload, and so on
Yesterday, I spent more than two hours submitting JSP form data and saving it to the database with Chinese garbled characters. Today I finally solved the problem. Here are some operations to help you.
The main problem is coding. There are a lot of
The standard tag Library (jstl) is a set of custom tags that implement many common web site functions in standardized formats. In the JSP Best Practices Section, Brett McLaughlin will introduce you to jstl and explain how to change JSP pages to use
1. garbled Chinese characters may occur when the request object processes get and post requests:Tomcat processes get and post requests in different ways.A POST request stores parameters in the message body of the request data packet.Therefore, you
JSP Execution Process
1. The client sends a request
2. The Web Container converts JSP into Servlet Source Code
3. The Web Container compiles the generated source code.
4. The Web container loads and executes the compiled code.
5. Return the
I. garbled characters on the JSP page
2. garbled characters appear when the form is submitted to Chinese
Iii. Database Connection
During the JSP development process, Chinese garbled characters often occur, which may affect you. Now I have
Import copyright information copyright information import test
Copyright Information Page
copyright page sales hotline of the programming dictionary: 400-675-1000 URL: www.mingrisoft.com Copyright@www.mingrisoft.com
When sending a client request, call the service method and pass a request and response object. Servlet first checks whether the request is a get operation or a post operation. Then it calls the following method: doget or dopost. Both doget and
1. PrinciplesDtree is a free Javascript script. You only need to define a limited number of parameters to create a beautiful tree menu. Download directory:Http://www.destroydrop.com/javascripts/tree/The following is an example of dtree usage:1)
JSP Design Mode
I. IntroductionI remember that when I was a beginner in JSP, I always liked to compare it with ASP and PHP, And I was used to writing JSP in ASP development mode.Later, I found out that this is really a silly practice. In fact, JSP
1. the most direct and simplest way is to put the file address directly into a link on the HTML page. The disadvantage is that the file path on the server is exposed, and other control (such as permissions) on file download is not available ).
Simple Test on TomcatCreate a helloworld directory under the examples directoryTomcat 6.0/webapps/examples/helloworldCreate the test. jsp file.HTTP: /localhost: 8103/examples/helloworld/test. jspRun.
Lesson 11. Add dynamic code2. Applet 3.Lesson 31.
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