• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying multibyte in struts

 
HemaRaghavendra Madala
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch.
What is "multi byte data"? Isn't data larger than one byte, like an int, multi-byte?
 
HemaRaghavendra Madala
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic