Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts multipart/form-data and encoding problem  RSS feed

 
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: 17309
11
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!