• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts multipart/form-data and encoding problem

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Skool. Stay in. Smartness. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic