• 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

Multilingual Data Entry using Struts 1.2

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everybody,

I'm working in a project which is multilingual supported. The application has facliity to display the pages in different languages as well as can save data written in different languages. App user needs to choose the language at the login time and application will store his language preference in session variable. I'm using struts 1.2 as development framework and Oracle 10g as DB.

Displaying pages in different languages is working perfectly. But when I'm trying to retrieve data written in different language in my form other than English, like Hindi, Oriya, Bengali etc, then in action form it's coming as garbage. The problematic thing is I've tried this using normal JSP and Servlet and it's working correctly. When I'm using struts <html:form> and <html:text> instade of <form> and <input type="text"> data coming as garbage.

So can anyone give any clue to solve the problem ? My JSP and Action class are given below :


Thanks in Advance....


My JSP Page -


My Action Class -




 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am also facing same problem, any one suggest me
 
Ranch Hand
Posts: 329
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Prithwish,
Struts doesnt implement the HTML "<input type="text">" it just render it, understanding <html:text> stands for "input type=text". There should not be any problem with struts as long as your character encoding is supported. However, struts doesnt handle the direct request parameters and attributes since you are not using struts over there. For example like in line number 21,22 - request.getAttribute("COMMENTS") request.getParameter("COMMENTS") etc.. try avoiding these types for data transfer instead use form beans to let struts do everything for you and it should work fine.
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Prithwish,

Please let me know the below details,

1. Oracle 10g - character set ??

2. Which SERVER you have deployed the below application
JSP & SERVLET application... server ??
STRUTS Application..... server ??

3. which browser you are using ?

4. Are you using any open source framework... like Liferay ???

 
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic