Today's mission
- Complete the function module in the background
1.1 The backstage function of the online mall is realized: the requirement of 1.1.1 backstage function:
1.1.1.1 Classification Management:
"Search All Categories"
* Click category Management on the left menu page:
* Submit to Servlet:
* Check all the categories:
* Displayed to the page:
"Add Category"
* Click the "Add" button on the Category List page.
* Submit to Servlet to jump to add page.
* Enter information click "OK" button.
* Submit to Servlet to complete the function of saving classification.
"Modify Classification"
* Click on the "Edit" link in the Category List page:
* Submit to Servlet for query.
* Display to the edit page.
* Modify the information of the classification. Click the "OK" button.
* Submit to Servlet to complete the function of modifying classification.
"Delete category"
* Click on the "delete" link in the Category List page:
* submitted to the servlet.
* Page jump.
1.1.1.2 Commodity Management
"Search Products"
* Click on "Product Management" on the left menu page.
* Submit to Servlet for query.
* Display to page.
"Add Item"
* Click on the "Add" button on the Product List page.
* Submit to Servlet: query all classifications.
* page jumps to add page.
* Enter information (including pictures) in the Add page
* Click "OK"
* Submit to Servlet: File upload, data inserted into database.
File Upload:
* Three elements:
* The way to submit is post:
* <input type= "file" name= "upload" is required in the form >
* 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 the FileUpload:
* Get the Disk File factory object:
* Core parsing classes obtained through the factory:
* Parse the Request object, return the collection, and the contents of the collection are each part of the split line split.
* Traverse each section:
"Lower shelf goods"
* Click on the "Rack" link on the list page of the product.
* Submit to Servlet:
* Modify the status of the product:
* Page Jump:
"Products listed"
* Add an item to the left menu:
* Select a product to be listed.
1.1.1.3 Order Management
"Order Management"
In the left menu, click on the "Order Management" link:
Order Enquiry (Inquiry Order by status)
Page Jump:
:
"Javaweb Study notes" online Mall Combat 5: Backstage Function module