• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Thai and struts  RSS feed

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We have application based on Struts1.1 on Websphere 5.0.2.6. When Thai characters are inputed, they are converted to their respective unicode representation (&#numbers and stored in the DB. I don't know how this conversion happens, it happens only when the <CODE><META http-equiv="Content-Type" content="text/html; charset=TIS-620"> </CODE> is used. When the data is retrieved and shown in the UI, it is shown in the Unicode format and not in the Thai character format.

After investigating I found at that the struts TextTag is trying to filter/convert this (since it contains &#). Since it is not able to find the conversion for this, it is displayed as it is. In the bean:write tag we have an attribute called filter which when set to false, turns off this process. Unfortunately we do not have such attribute in the html:text tag. I am using the ELTextTag.

It would be highly helpful if I get the source code for the strutsel package that came along with the struts1.1 package. If anybody has anyother that would be useful for me, it will be greatly appreciated.

Regards

Uday
 
please buy this thing and then I get a fat cut of the action:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!