File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts multipart/form-data and encoding problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts multipart/form-data and encoding problem" Watch "Struts multipart/form-data and encoding problem" New topic

Struts multipart/form-data and encoding problem

Tero Ahonen

Joined: May 24, 2001
Posts: 26
I'm using Struts MultipartRequestHandler for uploading file to server with my webapp. File upload form contains also text fields and I have a problem to get data correclty encoded from those text fields.

Everything works fine if I use standard chars and letter, but I post some data which contains scandic characters (umlautes like �, �, � etc.) those chars are not transferred correctly to business logic.

I have set the page encoding to all jsps automaticlly with jsp-property-set in web.xml(jsp 2) and also manually to this form jsp. Encoding that I use is ISO-8859-1, which should contains the scandic chars. Actually scandic chars word fine in standard HTML forms.

I'm runnit the webapp on Tomcat 5.0.2x and with JDK 1.4.2....does anyone have a knowledge about this kind of issue.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Hi Tero,

We have a Struts forum here at Javaranch, which will probably get a better response.

I am going to move this thread to that forum.

Good Luck


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Struts multipart/form-data and encoding problem
It's not a secret anymore!