Home  >  Article  >  Java  >  Online shopping mall practice--backend functional modules

Online shopping mall practice--backend functional modules

零下一度
零下一度Original
2017-06-25 10:36:341579browse

Today’s task

  • Complete the backend function module

1.1 Implementation of the backend function of the online mall:

1.1 .1 Backend functional requirements:

1.1.1.1 Category management:

[Query all categories]

* Click Category Management in the left menu page:

* Submit to Servlet:

* Query all categories:

* Display on the page:

[Add Category]

* Click the [Add] button on the category list page.

* Submit to Servlet and jump to the add page.

* Enter the information and click the [OK] button.

* Submit to the Servlet to complete the function of saving the classification.

[Modify classification]

* Click the [Edit] link in the category list page:

* Submit to the Servlet for query.

* Display to the modification page.

* Modify the category information .Click the [OK] button.

* Submit it to the Servlet to complete the function of modifying the category.

[Delete Category]

* Click [Delete] on the category list page Link:

* Submit to Servlet.

* Page jump.

1.1.1.2 Product Management

[Query Product]

* Click [Product Management] in the left menu page

* Submit to Servlet for query.

* Display to the page.

[Add Product]

* Click the [Add] button on the product list page.

* Submit to Servlet: Query all categories.

* The page jumps to the add page.

* Enter information (including pictures) on the add page

* Click [OK]

* Submit to Servlet: file upload, data inserted into the database.

** *** File upload:

* Three elements:

* The submission method is POST:

* The form needs to have

* enctype=”multipart/form-data”

* File upload technology:

* Servlet3. 0

                                                                                                        -1.4.jar

* Struts2

* When using FileUpload:

* Obtain the disk file factory object:

* Obtain the core parsing class through the factory:

* Parse the request object and return the collection. The content in the collection is each part divided by the dividing line.

* Traverse each part:

【Removed Products】

* Click the 【Removed】link on the product list page.

* Submit to Servlet:

* Modify the status of the product:

* Page jump:

【Listed product】

* Add a listed product in the left menu:

* Select a product to put on the shelves.

1.1.1.3 Order Management

[Order Management]

Click [Order Management] in the left menu Link:

Query order (query order by status)

Page jump:

Effect picture:

The above is the detailed content of Online shopping mall practice--backend functional modules. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn