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().getBytes("iso8859_1"),"big5")%>

my question is, can i just the bean tag to display the chinese properly instead of the jsp expression?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

the problem is in the bean instead of the jsp page. The String returned by the bean was wrong in the first place.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chpchaiAuthor Commented:
so i should encode the string first in hte bean, not in the jsp page?
yes, if you can show us the bean. we might be able to help.
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

chpchaiAuthor Commented:
ok, thanks~
you are very welcome! but is any reason for a 'C' grade?
chpchaiAuthor Commented:
well, seems i gave wrong the grade according to that description...
but can i still change it?
Thank you all!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.