| Author |
Displaying multibyte in struts
|
HemaRaghavendra Madala
Greenhorn
Joined: Oct 20, 2010
Posts: 2
|
|
Hi folks,
As part of my new requirement,I have to accomodate changes for displaying multi byte data.Please suggest me the probable changes need to be done accomplishing the task.Please find the exact scenario below
scenario:I have to pull the multi byte data from DB2 database and display it on the UI besides having base framework struts on web sphere server.
Your help is appreciated.
thanks,
raghu
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8265
|
|
Welcome to the JavaRanch.
What is "multi byte data"? Isn't data larger than one byte, like an int, multi-byte?
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
HemaRaghavendra Madala
Greenhorn
Joined: Oct 20, 2010
Posts: 2
|
|
Joe Ess wrote:Welcome to the JavaRanch.
What is "multi byte data"? Isn't data larger than one byte, like an int, multi-byte?
Hi Joe,
Multi byte data is the one which will be stored in more than a byte.Like the english character set will be stored in less than a byte..where as if we take chinese characterset,they can be stored in more than a byte..For displaying such a kind of character set on the browser,I hope some changes need to be accomodated.I am trying to analyse the probable solutions on the requirement
I appreciate your interest on the post
thanks,
Raghu
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8265
|
|
You mean Unicode? Java Strings are Unicode, so Struts supports it too. The only problem I could see is that your JSP tag has to declare the same charset as the data you are trying to display.
Read This
|
 |
m hr
Greenhorn
Joined: Oct 20, 2010
Posts: 1
|
|
Hi Joe.
chinese,japanese languages will take more space to get stored and hence comes under multi byte and the character set encoding shud be set to UTF-8 .For displaying this,we need to set the character set encoding in the jsp page and when any multi byte data is passed from a form to an action,then there is again a mechanism of retrieving the exact value..these are the outline solutions that stay on my mind,could be great if somebody explains me how to proceed further on this issue
thanks for your reply.
Raghu
|
 |
 |
|
|
subject: Displaying multibyte in struts
|
|
|