You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by James Dean <ja...@hotmail.com> on 2003/01/05 08:24:32 UTC

enctype , and CharacterEncoding

Hi,

I used the following :

<html:form action="upload.do" enctype="multipart/form-data">
  <html:text property="aText" />
  <html:file property="aFile" />
  <html:submit />
</html:form>

to submit some text and upload file ,but it seems that forms with 
enctype="multipart/form-data" doesn't pass through servlet filters ( e.g. 
setCharacterEncodingFilter to set the correct request character encoding), 
which leads to wrong characters displayed, also ,as stated by struts upload 
example ,it is IMPORTANT to declare the form's enctype to be 
"multipart/form-data" for uploading files, should I separate <html:text> 
inputs in a separate JSP form (with a default enctype) to avoid that 
situation?

Thanks in advance,
James





_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>