Hello,
I've run into a bit of a problem and I'd like to know how others have solved it.
It's basically a character encoding issue. I post my struts-based JSP page to the user, they enter some data, and then submit the page back to my Action. The data they enter may contain multi-byte characters. If I pull the data out of the parameter list (using PropertyUtils), I'm getting a whole bunch of extra characters for each multi-byte character (ASCII works just fine). If I set the encoding value in the Request to UTF-8 before calling PropertyUtils, it seems to work great for non-Form data values. However, the since the Form is populated before my Action is called, these String values have already been decoded and are wrong.
I'd like to hear how others have solved this problem. I can see that one solution is to replace the RequestProcessor and hardcode the "setEncoding" on the Request to UTF-8, or subclass the whole ActionServlet. Are there any cleaner solutions? I can't believe I'm the only one to have run across this problem! I'm not THAT unlucky! :)
Any help is most gratefully appreciated.
--- regards --- Larry
--------------------------
Larry Young
The Dalmatian Group
www.dalmatian.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]