You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Name

Pell Multipart Plugin

Author

N/A

Homepage

N/A

Version

N/A

Compatibility

Bundled with Struts

State

Stable

License

Open Source (ASL2)

Download

N/A

Error formatting macro: rate: java.lang.NoSuchMethodError: 'java.lang.String com.atlassian.confluence.setup.BootstrapManager.getDomainName()'

Overview

The Pell Multipart plugin instructs Struts to use Jason Pell's multipart parser to process file uploads .

For more information how the file uploading works in Struts 2, see the Handling File Uploads page.

Features

  • Uses Jason Pell's multipart parser

Usage

Other than including the plugin and the Pell multipart jar in your application, there is nothing more to do.

Example

If you have installed multiple plugins that provide multipart parsers, you can configure the pell parser in your struts.properties:

struts.multipart.parser=pell

Settings

The following settings can be customized. See the developer guide.

Setting

Description

Default

Possible Values

struts.multipart.parser

Sets which parser to use

pell

pell, jakarta, or any other class name that extends MultiPartRequest

struts.multipart.saveDir

The directory where the uploaded files will be placed

Value from javax.servlet.context.tempdir

Any path

struts.multipart.maxSize

The maximum file size in bytes to allow for upload

2 Gigabytes

Any number in kilobytes

Installation

This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib directory. The Pell Multipart library will need to be downloaded and included in your application as well. Due to its LGPL license, the library cannot be included in the Struts distribution.

  • No labels