Struts2 (s: text)

Source: Internet
Author: User

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 In jsp to display this message like this:

You can find the apostrophe after "patron '" can't be displayed.

Solution1:

Use ''(two') instead'


Solution2:

Define a method in action:

Public String getLibrarySipComment (){

Return MgrUtil. getResourceString ("hm. tool. test. librarySip. comment ");

}

Then use In jsp like this:



Reason:

I don't the reason, who can help to explain?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.