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=29668>.
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=29668





------- Additional Comments From [EMAIL PROTECTED]  2005-02-10 07:24 -------
Sturts is right, but most browsers don't follow the spec..(learned from your
comments, thx)

my workaround was extending RequestProcessor and overriding processPreprocess 
method

try {
   request.setCharacterEncoding("euc-kr");  // I'm an Korean ;-)
   return true;
} catch (Exception e) {
   System.out.println("OOOOPPPssss!!!!!" + e);
   return false;                        
}

but, it did not work fro multipart/form-data, so hard time for me...this problem
gave me a headache for serveral days.

I started to review Struts source,  RequestProcessor class. expecially in
process method.

request = processMultipart(request);
....
// General purpose preprocessing hook
if (!processPreprocess(request, response)) {
   return;
}

...

processMultipart method(request wraped in MultipartRequestWrapper) called before
processPreprocess method. (form's reset method too)

now, I just simply override process method, 

public void process(HttpServletRequest request, HttpServletResponse response)
             throws IOException, ServletException {
    request.setCharacterEncoding("euc-kr");
    super.process(request, response);
}

and then set it appropriately in struts-config.xml

it works fine for me. I'm not sure this thig is right, but it can help you



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to