Jsp- (Forms) file upload

Previously, when writing file upload jsp, when the back end get form values, using:

1. traversal, found file field, performs the processing logic file;

2. Non-file field was found, while with a flag variable, each +1 so that the order form field with reception.

Since the encoding type is

 ,

So java form the background to receive the form can not be directly used request.getParameter ( "xxx") to get the value and documents.

Need to traverse, based on the field names to match the name, to take the corresponding reception data.

 

Published 69 original articles · won praise 22 · views 5996

Guess you like

Origin blog.csdn.net/Kevin__Coder/article/details/105227354