Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

i18n problem in passing parameter between jsp and actions

 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi griends ,
I have a problem with jsp/Struts on WSAD,WAS
When i pass parameter from my jsp file to action (Struts Action)
Its encoding changes to "ISO Latin-1" -jsp file encoding type is set to UTF-8- and passed parameter is UTF-8 too , but when i check it in backend it seems that encoding changes without any reason?
is there any filter / solution for this? weblogic has a mechanism for this.


thank you in advance.
 
Masoud Kalali
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
I found that i should add

(request.setCharacterEncoding("UTF-8"); to my action before reading parameter from it , also i add two difinition on my jsp page request.setcharacterEncoding("UTF-8");
and < meta .../> which both of them set content and encoding of my jsp pages to utf-8 but i istill could not use my parameter , thier encoding seems to be " ISO Latin-1 " . while i type unicode characters in my text are at jsp page.
I use Websphere as APPS , is it a problem of Websphere?
or i should make some changes?

Thank you in advance.
 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!