[JAVAWEB learning notes] online shopping mall practice 5: functional modules in the background, javaweb learning notes

Source: Internet
Author: User

[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:

:

 

 

 

Related Article

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.