[JAVAWEB learning notes] online shopping mall practice 5: functional modules in the background, javaweb learning notes
Today's task
- Complete the functional modules of the background
1.1 Implementation of the online mall's background functions: 1.1.1 requirements for background functions:
1.1.1.1 classification management:
[Query all categories]
* On the left-side menu page, click category management:
* Submit to Servlet:
* Query all categories:
* Displayed on the page:
[Add category]
* Click Add on the category list page.
* Submit to Servlet to jump to the add page.
* Enter the information and click OK.
* Submit the file to the Servlet to save the category.
[Modify category]
* Click the edit link on the category list page:
* Submit to Servlet for query.
* The modification page is displayed.
* Modify the category information. Click OK.
* Submit the file to the Servlet to modify the category.
[Delete category]
* Click the delete link on the category list page:
* Submit to Servlet.
* Page Jump.
1.1.1.2 Commodity Management
[Query products]
* Click product management on the menu page on the left]
* Submit to Servlet for query.
* Displayed on the page.
[Add product]
* Click Add on the product list page.
* Submit to Servlet: Query all categories.
* The page jumps to the add page.
* Enter information (including images) on the add page)
* Click OK]
* Submit to Servlet: Upload the file and insert the data to the database.
* ***** File upload:
* Three elements:
* The submission method is POST:
* The form must contain <input type = "file" name = "upload">
* Enctype = "multipart/form-data"
* File Upload technology:
* Servlet3.0
* JSPSmartUpload
* FileUpload:
* Commons-fileupload-1.2.1.jar
* Commons-io-1.4.jar
* Struts2
* When Using FileUpload:
* Obtain the disk file factory object:
* Obtain core parsing classes through the factory:
* Parse the request object and return a set. The content in the set is each part of the split line.
* Traverse each part:
[Dismounting products]
* Click the dismounting link on the product list page.
* Submit to Servlet:
* Modify the product status:
* Page Jump:
[Shelving products]
* Add a shelving item in the left-side menu:
* Select a product to be shelved.
1.1.1.3 Order Management
[Order Management]
Click "Order Management" in the menu on the left:
Query orders (query orders by status)
Page jump:
: