struts2 的一個問題

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章