DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30044>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30044

solve encoding problem. add upload.setHeaderEncoding(encoding) on handleRequest method.

           Summary: solve encoding problem. add
                    upload.setHeaderEncoding(encoding) on handleRequest
                    method.
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: File Upload
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


class : org.apache.struts.upload.CommonsMultipartRequestHandler
change method handleRequest(HttpServletRequest request) accessibility on 
CommonsMultipartRequestHandler, to solve the encoding problem.


public void handleRequest(HttpServletRequest request) throws ServletException {
...
// Create and configure a DIskFileUpload instance.
DiskFileUpload upload = new DiskFileUpload();

//Add setHeaderEncoding to solved the encoding problem.
String encoding=request.getCharacterEncoding();
if(encoding!=null) upload.setHeaderEncoding(encoding);
....
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to