SSH2 + JQuery Easyui A case study of book additions and deletions

Source: Internet
Author: User

Reprinted from http://z18022893621.iteye.com/blog/1961412

First, build Web Project, import SSH2 framework

Second, under the Webroot to the folder script, which put the following file:

1.themes (You can change the theme for the UI)

2.jquery-1.8.0.min.js (may be an error, not tube)

3.jquery.easyui.min.js

4.easyui-lang-zh_cn.js (internationalized file)

5.book.js (script)

Three, entity and entity mapping files

Book:java code    package org.ajax.entity;      import java.sql.timestamp;         /**   * Book entity.  @author  MyEclipse  persistence tools   */      public class book  implements  java.io.Serializable {             // fields                private Integer id;         private String isbn;         private String title;        private Double price;         private Timestamp pubdate;         private String intro;             //  constructors          /** default constructor */        public book ()  {       }           /** minimal constructor */        Public book (double price, timestamp pubdate)  {            this.price = price;            this.pubdate = pubdate;       }               /** full constructor */        public book (string isbn, string title, double price, timestamp  Pubdate, string intro)  {           THIS.ISBN  = isbn;           this.title = title;           this.price = price;            this.pubdate = pubdate;            this.intro = intro;       }                // Property accessors          public integer getid ()  {            return this.id;       }               public void setid (integer id)  {           this.id = id;       }           PUBLIC STRING GETISBN ()  {            return this.isbn;       }               PUBLIC VOID SETISBN (STRING ISBN)  {           this.isbn = isbn;        }          public string gettitle ()  {           return this.title;       }               public void settitle (String  title)  {           this.title = title;        }          public Double  GetPrice ()  {           return this.price;        }              public void  Setprice (double price)  {           this.price  = price;       }          public  Timestamp getpubdate ()  {           return

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.