EXT 2.0.1 grid addition, deletion, modification, and DWR 1 instance-operating database version (with source code) (beansoft)

Source: Internet
Author: User
EXT 2.0.1 grid addition, deletion, modification, and DWR 1 instance-operation database version (with source code)

Reminder :Disable the download tool when downloading a Microsoft online storage file ,Otherwise you will get the wrong file ,Double-click EXEWill come out DoSWindow .The correct operation is to click the file name to view the download link, file size, and other information. .

Microsoft's online storage can be used again. In 5g space, Microsoft is rich.

Http://cid-519b3f7aa2172030.skydrive.live.com/self.aspx/Public/AJAX/extdwrgrid.zip 1.13 MB import myeclipse, can also be used in other development tools.

Run:

This is true. It is synchronized with the database. However, if there is a security problem, we recommend that you add a password. There are a total of 20 fields. The background database:

Export to excel:
(Omitted)

EXT + DWR + MySQL simple example

Five examples are provided:
Ext 2 and DWR 1 Table editing controls (no database version)
Ext 2 example of table editing controls (static pages, Java and DWR-independent versions)
Netbeans 6 open document team online Address Book (EXT + DWR + MySQL)
DWR check whether the registered user name exists
Simulate the DWR engine to call methods in the class through reflection and obtain the return value

To run this example, first
1. Run table. SQL to create a table in MySQL;
2. Modify the src/Dao/usermanagernb. Java
Public static connection getconnection () method to connect
The correct database address.
3. Publish the project and enter the address http: // localhost: 8080/extdwrgrid/for access;
4. to modify the example, note that the vast majority of pages are UTF-8-encoded, such as. js files.

Attachment:
DWR uses Ajax background post to call parameters, and then uses reflection technology to call class methods and obtain results.

Ajax requests sent in the background:
Post DWR/exec/jusermanager. checkuserexits. dwr http/1.1
Accept :*/*
Accept-language: ZH-CN
Referer: http: // 192.168.1.200: 8000/ajaxreview/ajax_reg_dwr.html
Content-Type: text/plain
Accept-encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HOST: 192.168.1.200: 8000
Content-Length: 146
Connection: keep-alive
Cache-control: No-Cache
COOKIE: JSESSIONID = f0d84ef983957a66162555d3ab966a29

Callcount = 1
C0-scriptName = jusermanager // class
C0-methodName = checkuserexits // method name
C0-id = 358_1212542594257
C0-param0 = string: % E6 % B8 % A9 % E5 % AE % B6 % E5 % AE % 9d // encoded parameter value
Xml = true

Value returned by the backend:
Header
HTTP/1.1 200 OK
Server: APACHE-Coyote/1.1
Content-Type: text/plain; charset = ISO-8859-1
Transfer-encoding: chunked
Date: Wed, 04 Jun 2008 01:23:14 GMT

The body (responsetext) is the execution result of the method.
VaR S0 = "\ u5bf9 \ u4e0d \ u8d77, \ u6b64 \ u7528 \ u6237 \ u540d \ u4e0d \ u5141 \ u8bb8 \ u6ce8 \ u518c ";
Dwrengine. _ handleresponse ('2017 _ 123456', S0 );

BeanSoft@126.com (Liu changyong)
Http://beansoft.blogjava.net/

OtherArticle:
Http://www.blogjava.net/ITdavid/archive/2008/03/14/186202.html
Http://clarancepeng.javaeye.com/blog/146549
Http://www.javaeye.com/post/403073
Http://tmsoft.lsxy.com/index.php? Id = 600 & load = read

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.