chpchai
asked on
Using struts, display Chinese
When using the bean tag, usually i write
<bean:write name="herb" property="type" />
to display the value of a variable of a bean.
However, when the value of a string variable is chinese, i have to change the encoding to display it properly.
i usually write:
<%=new String(herb.getType().getB ytes("iso8 859_1"),"b ig5")%>
my question is, can i just the bean tag to display the chinese properly instead of the jsp expression?
<bean:write name="herb" property="type" />
to display the value of a variable of a bean.
However, when the value of a string variable is chinese, i have to change the encoding to display it properly.
i usually write:
<%=new String(herb.getType().getB
my question is, can i just the bean tag to display the chinese properly instead of the jsp expression?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yes, if you can show us the bean. we might be able to help.
ASKER
ok, thanks~
you are very welcome! but is any reason for a 'C' grade?
http://www.cityofangels.com/Experts/Closing.htm#7
http://www.cityofangels.com/Experts/Closing.htm#7
ASKER
well, seems i gave wrong the grade according to that description...
but can i still change it?
but can i still change it?
Thank you all!
ASKER