aspose file tools*
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts multipart/form-data and encoding problem" Watch "Struts multipart/form-data and encoding problem" New topic
Author

Struts multipart/form-data and encoding problem

Tero Ahonen
Greenhorn

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.


-Tero
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts multipart/form-data and encoding problem
 
Similar Threads
UTF Encoding Help
download files with scandic letters
html file with multiple form elements
File upload problem
JSP Character Encoding