devpia.dextuploadnj
Inteface FormItem
- Minimum version supported
- 1.0.0
- Minimum support environment
- JRE 1.6
- Description
-
The FormItem handles information on a string element from multipart data as an interface that inherits FieldItem interface.
FileUpload dextnj = new FileUpload(request, env); dextnj.prepare(); ... // Returns the number of MultipartFormItem objects. int formCount = dextnj.getFormItemCount(); // Returns the iterator of the field name that points to the MultipartFormItem object. Iterator<String> iterator = dextnj.getFormItemNames(); // Returns the 0th MultipartFormItem object. FormItem item = dextnj.getFormItem(0); // Returns the first MultipartFormItem object with the field name is "name". FormItem item = dextnj.getFormItem("name"); // Returns the value of the 0th MultipartFormItem object. String value = dextnj.getFormItemValue(0); // Returns the value of the first MultipartFormItem object with the field name is "name". String value = dextnj.getFormItemValue("name"); // Returns all MultipartFormItem objects with "orders" Name. List<FormItem> orders = dextnj.getFormItems("orders"); // Returns all MultipartFormItem objects. List<FormItem> orders = dextnj.getFormItems(); - Methods
-
See the getFieldName method of the FieldItem inteface.
See the getItemType method of the FieldItem interface.
getValue
- Returns the string value of the element.
-
Signatures
String getValue()
-
Returns
The string value of the element