Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts multipart/form-data and encoding problem

 
Tero Ahonen
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic