Issue:
There is a message defined in hmResources.properties like this: hm.tool.test.librarySip.comment =Note: To test the verification of a library patron‘s account, enter a valid user name or barcode and password or PIN.
And use <s:text> in jsp to display this message like this : <s:text name="hm.tool.test.librarySip.comment" />
You can find the apostrophe after “patron’” can’t be displayed.
Solution1:
use
‘’(Two ‘) instead of ‘
Solution2:
Define a method in action :
public String getLibrarySipComment(){
return MgrUtil.getResourceString("hm.tool.test.librarySip.comment");
}
Then use <s:text> in jsp like this : <s:text name="librarySipComment" />
Reason:
I don’t the reason, who can help to explain?
原文:http://blog.csdn.net/liangoo7/article/details/19125541