Search in sources :

Example 1 with DefaultLocaleProvider

use of com.opensymphony.xwork2.DefaultLocaleProvider in project struts by apache.

the class FileUploadInterceptorTest method createMultipartRequest.

private MultiPartRequestWrapper createMultipartRequest(HttpServletRequest req, int maxsize) throws IOException {
    JakartaMultiPartRequest jak = new JakartaMultiPartRequest();
    jak.setMaxSize(String.valueOf(maxsize));
    return new MultiPartRequestWrapper(jak, req, tempDir.getAbsolutePath(), new DefaultLocaleProvider());
}
Also used : DefaultLocaleProvider(com.opensymphony.xwork2.DefaultLocaleProvider) JakartaMultiPartRequest(org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest) MultiPartRequestWrapper(org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper)

Aggregations

DefaultLocaleProvider (com.opensymphony.xwork2.DefaultLocaleProvider)1 JakartaMultiPartRequest (org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest)1 MultiPartRequestWrapper (org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper)1