Complete the backend function module
[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.
[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)
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!